home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / Hardware / TN-Hardware < prev   
MacBinary  |  1994-04-27  |  2.2 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Jul 15 15:25:49 1993, modified Wed Apr 27 06:14:01 1994, creator 'HLX2', type 'ONLN', 2247403 bytes "TN-Hardware" , at 0x224b6b 48558 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 4e 2d 48 61 72 | 64 77 61 72 65 00 00 00 |..TN-Har|dware...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 22 4a eb 00 | 00 bd ae a8 6b 5f bd a9 |...."J..|....k_..|
|00000060| e3 eb 69 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..i.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 dd 60 00 00 |........|.....`..|
|00000080| 48 57 20 31 20 2d 20 41 | 44 42 d0 54 68 65 20 55 |HW 1 - A|DB.The U|
|00000090| 6e 74 6f 6c 64 20 53 74 | 6f 72 79 20 3a 20 53 70 |ntold St|ory : Sp|
|000000a0| 61 63 65 20 41 6c 69 65 | 6e 73 20 41 74 65 20 4d |ace Alie|ns Ate M|
|000000b0| 79 20 4d 6f 75 73 65 0d | 48 61 72 64 77 61 72 65 |y Mouse.|Hardware|
|000000c0| 09 0d 52 65 76 69 73 65 | 64 20 62 79 3a 09 52 69 |..Revise|d by:.Ri|
|000000d0| 63 68 20 4b 75 62 6f 74 | 61 09 4f 63 74 6f 62 65 |ch Kubot|a.Octobe|
|000000e0| 72 20 31 39 39 31 0d 57 | 72 69 74 74 65 6e 20 62 |r 1991.W|ritten b|
|000000f0| 79 3a 09 43 61 6d 65 72 | 6f 6e 20 42 69 72 73 65 |y:.Camer|on Birse|
|00000100| 09 41 75 67 75 73 74 20 | 31 39 38 38 0d 54 68 69 |.August |1988.Thi|
|00000110| 73 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |s Techni|cal Note|
|00000120| 20 65 78 70 6c 61 69 6e | 73 20 68 6f 77 20 74 68 | explain|s how th|
|00000130| 65 20 41 70 70 6c 65 20 | 44 65 73 6b 74 6f 70 20 |e Apple |Desktop |
|00000140| 42 75 73 20 28 41 44 42 | 29 20 77 6f 72 6b 73 20 |Bus (ADB|) works |
|00000150| 6f 6e 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |on the M|acintosh|
|00000160| 2e 20 20 54 68 69 73 20 | 4e 6f 74 65 20 63 6f 76 |. This |Note cov|
|00000170| 65 72 73 20 74 68 65 20 | 62 6f 6f 74 20 70 72 6f |ers the |boot pro|
|00000180| 63 65 73 73 2c 20 64 72 | 69 76 65 72 20 69 6e 73 |cess, dr|iver ins|
|00000190| 74 61 6c 6c 61 74 69 6f | 6e 2c 20 41 44 42 20 4d |tallatio|n, ADB M|
|000001a0| 61 6e 61 67 65 72 20 72 | 75 6e 2d 74 69 6d 65 20 |anager r|un-time |
|000001b0| 62 65 68 61 76 69 6f 72 | 2c 20 75 73 65 20 6f 66 |behavior|, use of|
|000001c0| 20 41 44 42 20 4d 61 6e | 61 67 65 72 20 63 61 6c | ADB Man|ager cal|
|000001d0| 6c 73 2c 20 61 6e 64 20 | 61 6e 73 77 65 72 73 20 |ls, and |answers |
|000001e0| 63 6f 6d 6d 6f 6e 6c 79 | 20 61 73 6b 65 64 20 71 |commonly| asked q|
|000001f0| 75 65 73 74 69 6f 6e 73 | 2e 0d 43 68 61 6e 67 65 |uestions|..Change|
|00000200| 73 20 73 69 6e 63 65 20 | 46 65 62 72 75 61 72 79 |s since |February|
|00000210| 20 31 39 39 30 3a 20 20 | 41 64 64 65 64 20 64 65 | 1990: |Added de|
|00000220| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|00000230| 20 62 6f 6f 74 20 70 72 | 6f 63 65 73 73 20 74 6f | boot pr|ocess to|
|00000240| 20 69 6e 63 6c 75 64 65 | 20 64 65 74 61 69 6c 20 | include| detail |
|00000250| 6f 6e 20 68 6f 77 20 74 | 68 65 20 41 44 42 53 20 |on how t|he ADBS |
|00000260| 72 65 73 6f 75 72 63 65 | 20 67 65 74 73 20 63 61 |resource| gets ca|
|00000270| 6c 6c 65 64 20 62 79 20 | 74 68 65 20 53 79 73 74 |lled by |the Syst|
|00000280| 65 6d 2c 20 61 64 64 65 | 64 20 64 65 74 61 69 6c |em, adde|d detail|
|00000290| 20 74 6f 20 32 20 6f 66 | 20 74 68 65 20 61 6e 73 | to 2 of| the ans|
|000002a0| 77 65 72 73 20 69 6e 20 | 74 68 65 20 51 26 41 20 |wers in |the Q&A |
|000002b0| 73 65 63 74 69 6f 6e 2c | 20 61 6e 64 20 61 64 64 |section,| and add|
|000002c0| 65 64 20 73 61 6d 70 6c | 65 20 63 6f 6d 70 6c 65 |ed sampl|e comple|
|000002d0| 74 69 6f 6e 20 72 6f 75 | 74 69 6e 65 73 20 66 6f |tion rou|tines fo|
|000002e0| 72 20 74 68 65 20 41 44 | 42 4f 70 20 66 75 6e 63 |r the AD|BOp func|
|000002f0| 74 69 6f 6e 2e 0d 42 6f | 6f 74 20 50 72 6f 63 65 |tion..Bo|ot Proce|
|00000300| 73 73 0d 44 75 72 69 6e | 67 20 74 68 65 20 62 6f |ss.Durin|g the bo|
|00000310| 6f 74 20 70 72 6f 63 65 | 73 73 2c 20 74 68 65 20 |ot proce|ss, the |
|00000320| 41 44 42 20 4d 61 6e 61 | 67 65 72 20 66 69 6e 64 |ADB Mana|ger find|
|00000330| 73 20 61 6c 6c 20 74 68 | 65 20 64 65 76 69 63 65 |s all th|e device|
|00000340| 73 20 6f 6e 20 74 68 65 | 20 62 75 73 20 61 6e 64 |s on the| bus and|
|00000350| 20 72 65 73 6f 6c 76 65 | 73 20 61 6e 79 20 61 64 | resolve|s any ad|
|00000360| 64 72 65 73 73 20 63 6f | 6e 66 6c 69 63 74 73 2e |dress co|nflicts.|
|00000370| 20 20 41 6e 20 61 64 64 | 72 65 73 73 20 63 6f 6e | An add|ress con|
|00000380| 66 6c 69 63 74 20 69 73 | 20 64 65 66 69 6e 65 64 |flict is| defined|
|00000390| 20 61 73 20 74 77 6f 20 | 6f 72 20 6d 6f 72 65 20 | as two |or more |
|000003a0| 64 65 76 69 63 65 73 20 | 77 69 74 68 20 74 68 65 |devices |with the|
|000003b0| 20 73 61 6d 65 20 6f 72 | 69 67 69 6e 61 6c 20 28 | same or|iginal (|
|000003c0| 64 65 66 61 75 6c 74 29 | 20 61 64 64 72 65 73 73 |default)| address|
|000003d0| 2e 20 20 41 20 67 6f 6f | 64 20 65 78 61 6d 70 6c |. A goo|d exampl|
|000003e0| 65 20 6f 66 20 74 68 69 | 73 20 63 6f 6e 66 6c 69 |e of thi|s confli|
|000003f0| 63 74 20 69 73 20 61 20 | 6d 6f 75 73 65 20 61 6e |ct is a |mouse an|
|00000400| 64 20 61 20 67 72 61 70 | 68 69 63 73 20 74 61 62 |d a grap|hics tab|
|00000410| 6c 65 74 20 74 68 61 74 | 20 61 72 65 20 62 6f 74 |let that| are bot|
|00000420| 68 20 61 74 20 61 64 64 | 72 65 73 73 20 33 20 28 |h at add|ress 3 (|
|00000430| 72 65 6c 61 74 69 76 65 | 20 64 65 76 69 63 65 29 |relative| device)|
|00000440| 2e 20 20 54 68 65 20 41 | 44 42 20 4d 61 6e 61 67 |. The A|DB Manag|
|00000450| 65 72 20 72 65 73 6f 6c | 76 65 73 20 74 68 65 73 |er resol|ves thes|
|00000460| 65 20 61 64 64 72 65 73 | 73 20 63 6f 6e 66 6c 69 |e addres|s confli|
|00000470| 63 74 73 20 61 73 20 64 | 65 73 63 72 69 62 65 64 |cts as d|escribed|
|00000480| 20 69 6e 20 41 70 70 65 | 6e 64 69 78 20 42 20 6f | in Appe|ndix B o|
|00000490| 66 20 74 68 65 20 41 44 | 42 20 53 70 65 63 69 66 |f the AD|B Specif|
|000004a0| 69 63 61 74 69 6f 6e 20 | 28 41 70 70 6c 65 20 44 |ication |(Apple D|
|000004b0| 72 61 77 69 6e 67 20 23 | 30 36 32 2d 30 32 36 37 |rawing #|062-0267|
|000004c0| 2d 45 29 20 61 6e 64 20 | 74 68 65 20 51 20 26 20 |-E) and |the Q & |
|000004d0| 41 20 73 65 63 74 69 6f | 6e 20 6f 66 20 74 68 69 |A sectio|n of thi|
|000004e0| 73 20 64 6f 63 75 6d 65 | 6e 74 2e 0d 41 66 74 65 |s docume|nt..Afte|
|000004f0| 72 20 74 68 65 20 61 64 | 64 72 65 73 73 20 72 65 |r the ad|dress re|
|00000500| 73 6f 6c 75 74 69 6f 6e | 2c 20 74 68 65 20 64 65 |solution|, the de|
|00000510| 76 69 63 65 73 20 77 68 | 69 63 68 20 68 61 76 65 |vices wh|ich have|
|00000520| 20 62 65 65 6e 20 d2 6d | 6f 76 65 64 d3 20 64 75 | been .m|oved. du|
|00000530| 65 20 74 6f 20 61 64 64 | 72 65 73 73 20 63 6f 6e |e to add|ress con|
|00000540| 66 6c 69 63 74 73 20 61 | 72 65 20 61 64 64 72 65 |flicts a|re addre|
|00000550| 73 73 65 64 2c 20 73 74 | 61 72 74 69 6e 67 20 66 |ssed, st|arting f|
|00000560| 72 6f 6d 20 74 68 65 20 | 68 69 67 68 65 73 74 20 |rom the |highest |
|00000570| 75 6e 75 73 65 64 20 73 | 6f 66 74 20 61 64 64 72 |unused s|oft addr|
|00000580| 65 73 73 20 61 6e 64 20 | 77 6f 72 6b 69 6e 67 20 |ess and |working |
|00000590| 64 6f 77 6e 2e 20 20 54 | 68 65 20 73 79 73 74 65 |down. T|he syste|
|000005a0| 6d 20 6e 6f 77 20 6c 6f | 61 64 73 20 61 6e 64 20 |m now lo|ads and |
|000005b0| 65 78 65 63 75 74 65 73 | 20 61 6c 6c 20 74 68 65 |executes| all the|
|000005c0| 20 72 65 73 6f 75 72 63 | 65 73 20 6f 66 20 74 79 | resourc|es of ty|
|000005d0| 70 65 20 27 41 44 42 53 | 27 20 74 68 61 74 20 6d |pe 'ADBS|' that m|
|000005e0| 61 74 63 68 20 74 68 65 | 20 64 65 76 69 63 65 73 |atch the| devices|
|000005f0| 20 6f 6e 20 74 68 65 20 | 62 75 73 20 28 62 79 20 | on the |bus (by |
|00000600| 6f 72 69 67 69 6e 61 6c | 20 61 64 64 72 65 73 73 |original| address|
|00000610| 29 2e 0d 4f 6e 63 65 20 | 61 6c 6c 20 74 68 65 20 |)..Once |all the |
|00000620| 41 44 42 20 73 65 72 76 | 69 63 65 20 72 6f 75 74 |ADB serv|ice rout|
|00000630| 69 6e 65 73 20 61 72 65 | 20 69 6e 73 74 61 6c 6c |ines are| install|
|00000640| 65 64 2c 20 74 68 65 20 | 41 44 42 20 74 72 61 6e |ed, the |ADB tran|
|00000650| 73 63 65 69 76 65 72 20 | 28 6d 69 63 72 6f 63 6f |sceiver |(microco|
|00000660| 6e 74 72 6f 6c 6c 65 72 | 29 20 63 68 69 70 20 73 |ntroller|) chip s|
|00000670| 74 61 72 74 73 20 70 6f | 6c 6c 69 6e 67 20 74 68 |tarts po|lling th|
|00000680| 65 20 61 63 74 69 76 65 | 20 64 65 76 69 63 65 2e |e active| device.|
|00000690| 20 20 54 68 65 20 61 63 | 74 69 76 65 20 64 65 76 | The ac|tive dev|
|000006a0| 69 63 65 20 69 73 20 64 | 65 66 69 6e 65 64 20 61 |ice is d|efined a|
|000006b0| 73 20 74 68 65 20 6c 61 | 73 74 20 64 65 76 69 63 |s the la|st devic|
|000006c0| 65 20 74 6f 20 73 65 6e | 64 20 64 61 74 61 2e 20 |e to sen|d data. |
|000006d0| 20 53 69 6e 63 65 20 74 | 68 65 20 6d 6f 75 73 65 | Since t|he mouse|
|000006e0| 20 28 70 6f 69 6e 74 69 | 6e 67 20 64 65 76 69 63 | (pointi|ng devic|
|000006f0| 65 29 20 69 73 20 74 68 | 65 20 6d 6f 73 74 20 6c |e) is th|e most l|
|00000700| 69 6b 65 6c 79 20 64 65 | 76 69 63 65 20 74 6f 20 |ikely de|vice to |
|00000710| 68 61 76 65 20 64 61 74 | 61 20 72 65 61 64 79 20 |have dat|a ready |
|00000720| 61 74 20 61 6e 79 20 67 | 69 76 65 6e 20 74 69 6d |at any g|iven tim|
|00000730| 65 2c 20 69 74 20 64 65 | 66 61 75 6c 74 73 20 61 |e, it de|faults a|
|00000740| 73 20 74 68 65 20 61 63 | 74 69 76 65 20 64 65 76 |s the ac|tive dev|
|00000750| 69 63 65 20 61 66 74 65 | 72 20 73 74 61 72 74 75 |ice afte|r startu|
|00000760| 70 2e 0d 54 68 65 20 74 | 72 61 6e 73 63 65 69 76 |p..The t|ransceiv|
|00000770| 65 72 20 70 6f 6c 6c 73 | 20 74 68 65 20 61 63 74 |er polls| the act|
|00000780| 69 76 65 20 64 65 76 69 | 63 65 20 28 61 70 70 72 |ive devi|ce (appr|
|00000790| 6f 78 69 6d 61 74 65 6c | 79 20 65 76 65 72 79 20 |oximatel|y every |
|000007a0| 31 30 2d 31 36 20 6d 69 | 6c 6c 69 73 65 63 6f 6e |10-16 mi|llisecon|
|000007b0| 64 73 2c 20 64 6f 20 6e | 6f 74 20 64 65 70 65 6e |ds, do n|ot depen|
|000007c0| 64 20 6f 6e 20 74 68 69 | 73 20 69 6e 74 65 72 76 |d on thi|s interv|
|000007d0| 61 6c 29 2c 20 77 69 74 | 68 20 61 20 54 61 6c 6b |al), wit|h a Talk|
|000007e0| 20 52 30 20 63 6f 6d 6d | 61 6e 64 2e 20 20 49 66 | R0 comm|and. If|
|000007f0| 20 74 68 65 20 61 63 74 | 69 76 65 20 64 65 76 69 | the act|ive devi|
|00000800| 63 65 20 68 61 73 20 6e | 65 77 20 64 61 74 61 2c |ce has n|ew data,|
|00000810| 20 69 74 20 63 61 6e 20 | 72 65 73 70 6f 6e 64 20 | it can |respond |
|00000820| 77 69 74 68 20 69 74 2c | 20 61 6e 64 20 69 66 20 |with it,| and if |
|00000830| 69 74 20 64 6f 65 73 20 | 6e 6f 74 2c 20 69 74 20 |it does |not, it |
|00000840| 6a 75 73 74 20 74 69 6d | 65 73 20 6f 75 74 2e 20 |just tim|es out. |
|00000850| 20 49 66 20 61 6e 79 20 | 6f 74 68 65 72 20 64 65 | If any |other de|
|00000860| 76 69 63 65 73 20 68 61 | 76 65 20 64 61 74 61 20 |vices ha|ve data |
|00000870| 74 6f 20 73 65 6e 64 2c | 20 74 68 65 79 20 63 61 |to send,| they ca|
|00000880| 6e 20 61 73 73 65 72 74 | 20 53 52 51 20 28 72 65 |n assert| SRQ (re|
|00000890| 66 65 72 20 74 6f 20 46 | 69 67 75 72 65 20 35 20 |fer to F|igure 5 |
|000008a0| 6f 66 20 74 68 65 20 41 | 44 42 20 53 70 65 63 69 |of the A|DB Speci|
|000008b0| 66 69 63 61 74 69 6f 6e | 29 20 61 74 20 74 68 65 |fication|) at the|
|000008c0| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 54 61 6c 6b | end of |the Talk|
|000008d0| 20 52 30 20 63 6f 6d 6d | 61 6e 64 2e 20 20 57 68 | R0 comm|and. Wh|
|000008e0| 65 6e 20 74 68 65 20 68 | 6f 73 74 20 64 65 74 65 |en the h|ost dete|
|000008f0| 63 74 73 20 61 6e 20 53 | 52 51 2c 20 69 74 20 62 |cts an S|RQ, it b|
|00000900| 65 67 69 6e 73 20 70 6f | 6c 6c 69 6e 67 20 61 6c |egins po|lling al|
|00000910| 6c 20 61 64 64 72 65 73 | 73 65 73 20 77 69 74 68 |l addres|ses with|
|00000920| 20 61 20 54 61 6c 6b 20 | 52 30 20 63 6f 6d 6d 61 | a Talk |R0 comma|
|00000930| 6e 64 20 75 6e 74 69 6c | 20 6f 6e 65 20 72 65 74 |nd until| one ret|
|00000940| 75 72 6e 73 20 64 61 74 | 61 2e 20 20 54 68 61 74 |urns dat|a. That|
|00000950| 20 64 65 76 69 63 65 20 | 74 68 65 6e 20 62 65 63 | device |then bec|
|00000960| 6f 6d 65 73 20 74 68 65 | 20 61 63 74 69 76 65 20 |omes the| active |
|00000970| 64 65 76 69 63 65 2e 0d | 44 65 76 69 63 65 73 20 |device..|Devices |
|00000980| 68 61 76 65 20 6e 6f 20 | 77 61 79 20 6f 66 20 6b |have no |way of k|
|00000990| 6e 6f 77 69 6e 67 20 69 | 66 20 74 68 65 79 20 61 |nowing i|f they a|
|000009a0| 72 65 20 74 68 65 20 d2 | 61 63 74 69 76 65 20 64 |re the .|active d|
|000009b0| 65 76 69 63 65 d3 2e 20 | 54 68 65 20 61 6c 67 6f |evice.. |The algo|
|000009c0| 72 69 74 68 6d 20 66 6f | 72 20 61 20 64 65 76 69 |rithm fo|r a devi|
|000009d0| 63 65 20 77 69 74 68 20 | 64 61 74 61 20 72 65 61 |ce with |data rea|
|000009e0| 64 79 20 74 6f 20 73 65 | 6e 64 20 69 73 20 61 73 |dy to se|nd is as|
|000009f0| 20 66 6f 6c 6c 6f 77 73 | 3a 0d a5 09 57 61 69 74 | follows|:...Wait|
|00000a00| 20 66 6f 72 20 61 20 54 | 61 6c 6b 20 52 30 20 63 | for a T|alk R0 c|
|00000a10| 6f 6d 6d 61 6e 64 2e 0d | a5 09 49 66 20 74 68 65 |ommand..|..If the|
|00000a20| 20 54 61 6c 6b 20 52 30 | 20 69 73 20 66 6f 72 20 | Talk R0| is for |
|00000a30| 79 6f 75 2c 20 74 68 65 | 6e 20 72 65 74 75 72 6e |you, the|n return|
|00000a40| 20 74 68 65 20 64 61 74 | 61 2e 0d a5 09 49 66 20 | the dat|a....If |
|00000a50| 74 68 65 20 54 61 6c 6b | 20 52 30 20 69 73 20 6e |the Talk| R0 is n|
|00000a60| 6f 74 20 66 6f 72 20 79 | 6f 75 2c 20 77 61 69 74 |ot for y|ou, wait|
|00000a70| 20 66 6f 72 20 74 68 65 | 20 65 6e 64 20 6f 66 20 | for the| end of |
|00000a80| 74 68 65 20 63 6f 6d 6d | 61 6e 64 2c 20 61 6e 64 |the comm|and, and|
|00000a90| 20 61 73 73 65 72 74 20 | 53 52 51 2e 0d a5 09 49 | assert |SRQ....I|
|00000aa0| 66 20 74 68 65 20 54 61 | 6c 6b 20 52 30 20 69 73 |f the Ta|lk R0 is|
|00000ab0| 20 61 64 64 72 65 73 73 | 65 64 20 74 6f 20 79 6f | address|ed to yo|
|00000ac0| 75 2c 20 74 68 65 6e 20 | 72 65 73 70 6f 6e 64 20 |u, then |respond |
|00000ad0| 77 69 74 68 20 79 6f 75 | 72 20 64 61 74 61 2e 0d |with you|r data..|
|00000ae0| 4e 6f 77 20 74 68 61 74 | 20 61 20 64 65 76 69 63 |Now that| a devic|
|00000af0| 65 20 68 61 73 20 62 65 | 65 6e 20 70 6f 6c 6c 65 |e has be|en polle|
|00000b00| 64 2c 20 74 68 65 20 68 | 6f 73 74 20 72 65 74 72 |d, the h|ost retr|
|00000b10| 69 65 76 65 73 20 74 68 | 65 20 64 61 74 61 20 66 |ieves th|e data f|
|00000b20| 72 6f 6d 20 74 68 65 20 | 62 75 73 20 61 6e 64 20 |rom the |bus and |
|00000b30| 63 61 6c 6c 73 20 74 68 | 65 20 73 65 72 76 69 63 |calls th|e servic|
|00000b40| 65 20 72 6f 75 74 69 6e | 65 20 69 6e 73 74 61 6c |e routin|e instal|
|00000b50| 6c 65 64 20 66 6f 72 20 | 74 68 61 74 20 64 65 76 |led for |that dev|
|00000b60| 69 63 65 20 28 73 65 72 | 76 69 63 65 20 72 6f 75 |ice (ser|vice rou|
|00000b70| 74 69 6e 65 73 20 61 72 | 65 20 69 6e 73 74 61 6c |tines ar|e instal|
|00000b80| 6c 65 64 20 62 79 20 63 | 61 6c 6c 69 6e 67 20 5f |led by c|alling _|
|00000b90| 53 65 74 41 44 42 49 6e | 66 6f 20 61 6e 64 20 61 |SetADBIn|fo and a|
|00000ba0| 72 65 20 6d 61 69 6e 74 | 61 69 6e 65 64 20 62 79 |re maint|ained by|
|00000bb0| 20 74 68 65 20 41 44 42 | 20 4d 61 6e 61 67 65 72 | the ADB| Manager|
|00000bc0| 29 2e 20 20 54 68 65 20 | 73 79 73 74 65 6d 20 70 |). The |system p|
|00000bd0| 61 73 73 65 73 20 70 6f | 69 6e 74 65 72 73 20 74 |asses po|inters t|
|00000be0| 6f 20 74 68 65 20 73 65 | 72 76 69 63 65 20 72 6f |o the se|rvice ro|
|00000bf0| 75 74 69 6e 65 20 69 74 | 73 65 6c 66 2c 20 69 74 |utine it|self, it|
|00000c00| 73 20 64 61 74 61 20 61 | 72 65 61 2c 20 61 6e 64 |s data a|rea, and|
|00000c10| 20 74 68 65 20 64 61 74 | 61 20 72 65 63 65 69 76 | the dat|a receiv|
|00000c20| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 64 65 76 69 |ed from |the devi|
|00000c30| 63 65 2c 20 61 73 20 77 | 65 6c 6c 20 61 73 20 74 |ce, as w|ell as t|
|00000c40| 68 65 20 41 44 42 20 63 | 6f 6d 6d 61 6e 64 20 62 |he ADB c|ommand b|
|00000c50| 79 74 65 20 74 68 61 74 | 20 63 61 75 73 65 64 20 |yte that| caused |
|00000c60| 74 68 65 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 62 |the rout|ine to b|
|00000c70| 65 20 63 61 6c 6c 65 64 | 2e 0d 4e 6f 72 6d 61 6c |e called|..Normal|
|00000c80| 6c 79 2c 20 74 68 65 20 | 73 65 72 76 69 63 65 20 |ly, the |service |
|00000c90| 72 6f 75 74 69 6e 65 20 | 64 6f 65 73 20 6e 6f 74 |routine |does not|
|00000ca0| 20 6e 65 65 64 20 74 6f | 20 75 73 65 20 74 68 65 | need to| use the|
|00000cb0| 20 5f 41 44 42 4f 70 20 | 63 61 6c 6c 20 74 6f 20 | _ADBOp |call to |
|00000cc0| 72 65 74 72 69 65 76 65 | 20 64 61 74 61 2e 20 20 |retrieve| data. |
|00000cd0| 54 68 65 20 41 44 42 20 | d2 70 68 69 6c 6f 73 6f |The ADB |.philoso|
|00000ce0| 70 68 79 d3 20 61 73 73 | 75 6d 65 73 20 74 68 61 |phy. ass|umes tha|
|00000cf0| 74 20 72 65 67 69 73 74 | 65 72 20 7a 65 72 6f 20 |t regist|er zero |
|00000d00| 6f 66 20 61 20 64 65 76 | 69 63 65 20 69 73 20 74 |of a dev|ice is t|
|00000d10| 68 65 20 6d 61 69 6e 20 | 64 61 74 61 20 74 72 61 |he main |data tra|
|00000d20| 6e 73 6d 69 73 73 69 6f | 6e 20 72 65 67 69 73 74 |nsmissio|n regist|
|00000d30| 65 72 2e 20 20 53 69 6e | 63 65 20 72 65 67 69 73 |er. Sin|ce regis|
|00000d40| 74 65 72 20 7a 65 72 6f | 20 69 73 20 61 75 74 6f |ter zero| is auto|
|00000d50| 6d 61 74 69 63 61 6c 6c | 79 20 70 6f 6c 6c 65 64 |maticall|y polled|
|00000d60| 20 62 79 20 74 68 65 20 | 73 79 73 74 65 6d 2c 20 | by the |system, |
|00000d70| 74 68 65 72 65 20 73 68 | 6f 75 6c 64 20 62 65 20 |there sh|ould be |
|00000d80| 6e 6f 20 6e 65 65 64 20 | 74 6f 20 63 61 6c 6c 20 |no need |to call |
|00000d90| 5f 41 44 42 4f 70 20 66 | 72 6f 6d 20 74 68 65 20 |_ADBOp f|rom the |
|00000da0| 73 65 72 76 69 63 65 20 | 72 6f 75 74 69 6e 65 2e |service |routine.|
|00000db0| 20 20 54 79 70 69 63 61 | 6c 6c 79 2c 20 5f 41 44 | Typica|lly, _AD|
|00000dc0| 42 4f 70 20 69 73 20 75 | 73 65 64 20 74 6f 20 73 |BOp is u|sed to s|
|00000dd0| 65 74 20 6d 6f 64 65 73 | 20 6f 66 20 61 20 64 65 |et modes| of a de|
|00000de0| 76 69 63 65 2c 20 6f 72 | 20 74 6f 20 69 6e 74 65 |vice, or| to inte|
|00000df0| 72 72 6f 67 61 74 65 20 | 74 68 65 20 64 65 76 69 |rrogate |the devi|
|00000e00| 63 65 20 66 6f 72 20 73 | 74 61 74 75 73 d1 74 68 |ce for s|tatus.th|
|00000e10| 65 20 73 6f 72 74 20 6f | 66 20 74 68 69 6e 67 73 |e sort o|f things|
|00000e20| 20 74 68 61 74 20 73 68 | 6f 75 6c 64 20 6e 6f 74 | that sh|ould not|
|00000e30| 20 6e 65 65 64 20 74 6f | 20 62 65 20 64 6f 6e 65 | need to| be done|
|00000e40| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 63 65 20 | more th|an once |
|00000e50| 6f 72 20 74 77 69 63 65 | 20 64 75 72 69 6e 67 20 |or twice| during |
|00000e60| 6e 6f 72 6d 61 6c 20 6f | 70 65 72 61 74 69 6f 6e |normal o|peration|
|00000e70| 2e 0d 49 74 20 69 73 20 | 69 6d 70 6f 72 74 61 6e |..It is |importan|
|00000e80| 74 20 74 6f 20 6e 6f 74 | 65 20 74 68 61 74 20 41 |t to not|e that A|
|00000e90| 44 42 20 73 65 72 76 69 | 63 65 20 72 6f 75 74 69 |DB servi|ce routi|
|00000ea0| 6e 65 73 20 61 72 65 20 | 63 61 6c 6c 65 64 20 61 |nes are |called a|
|00000eb0| 74 20 69 6e 74 65 72 72 | 75 70 74 20 74 69 6d 65 |t interr|upt time|
|00000ec0| 2c 20 77 68 69 63 68 20 | 6d 65 61 6e 73 20 74 68 |, which |means th|
|00000ed0| 61 74 20 74 68 65 79 20 | 6d 75 73 74 20 66 6f 6c |at they |must fol|
|00000ee0| 6c 6f 77 20 61 6c 6c 20 | 74 68 65 20 72 75 6c 65 |low all |the rule|
|00000ef0| 73 20 72 65 67 61 72 64 | 69 6e 67 20 63 6f 64 65 |s regard|ing code|
|00000f00| 20 74 68 61 74 20 65 78 | 65 63 75 74 65 73 20 61 | that ex|ecutes a|
|00000f10| 74 20 69 6e 74 65 72 72 | 75 70 74 20 74 69 6d 65 |t interr|upt time|
|00000f20| 2e 20 20 28 53 65 65 20 | 49 6e 73 69 64 65 20 4d |. (See |Inside M|
|00000f30| 61 63 69 6e 74 6f 73 68 | 20 72 65 66 65 72 65 6e |acintosh| referen|
|00000f40| 63 65 73 20 74 6f 20 56 | 42 4c 20 74 61 73 6b 73 |ces to V|BL tasks|
|00000f50| 20 61 6e 64 20 44 65 76 | 69 63 65 20 4d 61 6e 61 | and Dev|ice Mana|
|00000f60| 67 65 72 20 49 2f 4f 20 | 63 6f 6d 70 6c 65 74 69 |ger I/O |completi|
|00000f70| 6f 6e 20 72 6f 75 74 69 | 6e 65 73 2e 29 0d 49 6e |on routi|nes.).In|
|00000f80| 73 74 61 6c 6c 69 6e 67 | 20 61 6e 20 41 44 42 20 |stalling| an ADB |
|00000f90| 53 65 72 76 69 63 65 20 | 52 6f 75 74 69 6e 65 20 |Service |Routine |
|00000fa0| 61 6e 64 20 4f 70 74 69 | 6f 6e 61 6c 20 44 61 74 |and Opti|onal Dat|
|00000fb0| 61 20 41 72 65 61 0d 41 | 74 20 62 6f 6f 74 20 74 |a Area.A|t boot t|
|00000fc0| 69 6d 65 20 74 68 65 20 | 73 79 73 74 65 6d 20 73 |ime the |system s|
|00000fd0| 65 61 72 63 68 65 73 20 | 66 6f 72 20 27 41 44 42 |earches |for 'ADB|
|00000fe0| 53 27 20 72 65 73 6f 75 | 72 63 65 73 20 69 6e 20 |S' resou|rces in |
|00000ff0| 74 68 65 20 53 79 73 74 | 65 6d 20 66 69 6c 65 2e |the Syst|em file.|
|00001000| 20 20 54 68 65 20 73 79 | 73 74 65 6d 20 6d 61 74 | The sy|stem mat|
|00001010| 63 68 65 73 20 64 65 73 | 6b 74 6f 70 20 62 75 73 |ches des|ktop bus|
|00001020| 20 64 65 76 69 63 65 73 | 20 62 79 20 74 68 65 69 | devices| by thei|
|00001030| 72 20 6f 72 69 67 69 6e | 61 6c 20 61 64 64 72 65 |r origin|al addre|
|00001040| 73 73 20 74 6f 20 61 6e | 20 27 41 44 42 53 27 20 |ss to an| 'ADBS' |
|00001050| 72 65 73 6f 75 72 63 65 | 20 28 69 2e 65 2e 2c 20 |resource| (i.e., |
|00001060| 69 66 20 74 68 65 20 6d | 61 63 68 69 6e 65 20 68 |if the m|achine h|
|00001070| 61 73 20 61 20 64 65 76 | 69 63 65 20 74 68 61 74 |as a dev|ice that|
|00001080| 20 72 65 73 70 6f 6e 64 | 73 20 61 74 20 61 64 64 | respond|s at add|
|00001090| 72 65 73 73 20 34 2c 20 | 74 68 65 20 73 79 73 74 |ress 4, |the syst|
|000010a0| 65 6d 20 6c 6f 6f 6b 73 | 20 66 6f 72 20 61 6e 20 |em looks| for an |
|000010b0| 27 41 44 42 53 27 20 72 | 65 73 6f 75 72 63 65 20 |'ADBS' r|esource |
|000010c0| 77 69 74 68 20 49 44 3d | 34 29 2e 20 20 54 68 65 |with ID=|4). The|
|000010d0| 20 6c 69 6d 69 74 61 74 | 69 6f 6e 20 6f 66 20 74 | limitat|ion of t|
|000010e0| 68 69 73 20 6d 65 74 68 | 6f 64 20 69 73 20 74 68 |his meth|od is th|
|000010f0| 61 74 20 74 68 65 72 65 | 20 63 61 6e 20 6f 6e 6c |at there| can onl|
|00001100| 79 20 62 65 20 6f 6e 65 | 20 27 41 44 42 53 27 20 |y be one| 'ADBS' |
|00001110| 72 65 73 6f 75 72 63 65 | 20 66 6f 72 20 65 61 63 |resource| for eac|
|00001120| 68 20 61 64 64 72 65 73 | 73 20 6f 6e 20 74 68 65 |h addres|s on the|
|00001130| 20 62 75 73 2e 0d 57 68 | 65 6e 20 74 68 65 20 73 | bus..Wh|en the s|
|00001140| 79 73 74 65 6d 20 66 69 | 6e 64 73 20 74 68 65 73 |ystem fi|nds thes|
|00001150| 65 20 72 65 73 6f 75 72 | 63 65 73 2c 20 69 74 20 |e resour|ces, it |
|00001160| 6c 6f 61 64 73 2c 20 64 | 65 74 61 63 68 65 73 2c |loads, d|etaches,|
|00001170| 20 61 6e 64 20 65 78 65 | 63 75 74 65 73 20 74 68 | and exe|cutes th|
|00001180| 65 6d 2e 20 20 54 68 65 | 20 53 79 73 74 65 6d 20 |em. The| System |
|00001190| 6c 6f 61 64 73 20 69 6e | 20 65 61 63 68 20 41 44 |loads in| each AD|
|000011a0| 42 53 20 64 72 69 76 65 | 72 20 77 69 74 68 20 61 |BS drive|r with a|
|000011b0| 20 5f 47 65 74 52 65 73 | 6f 75 72 63 65 20 63 61 | _GetRes|ource ca|
|000011c0| 6c 6c 2e 20 20 49 66 20 | 73 75 63 63 65 73 73 66 |ll. If |successf|
|000011d0| 75 6c 2c 20 74 68 65 20 | 53 79 73 74 65 6d 20 63 |ul, the |System c|
|000011e0| 61 6c 6c 73 20 5f 44 65 | 74 61 63 68 52 65 73 6f |alls _De|tachReso|
|000011f0| 75 72 63 65 20 6f 6e 20 | 74 68 65 20 68 61 6e 64 |urce on |the hand|
|00001200| 6c 65 20 74 6f 20 74 68 | 65 20 41 44 42 53 20 64 |le to th|e ADBS d|
|00001210| 72 69 76 65 72 2e 20 20 | 54 68 65 20 72 65 67 69 |river. |The regi|
|00001220| 73 74 65 72 73 20 61 72 | 65 20 73 65 74 20 75 70 |sters ar|e set up|
|00001230| 20 61 73 20 64 65 73 63 | 72 69 62 65 64 20 62 65 | as desc|ribed be|
|00001240| 6c 6f 77 2c 20 61 6e 64 | 20 61 20 4a 53 52 20 28 |low, and| a JSR (|
|00001250| 41 30 29 20 63 61 6c 6c | 20 69 73 20 6d 61 64 65 |A0) call| is made|
|00001260| 20 74 6f 20 65 78 65 63 | 75 74 65 20 74 68 65 20 | to exec|ute the |
|00001270| 72 65 73 6f 75 72 63 65 | 2e 20 20 49 74 20 69 73 |resource|. It is|
|00001280| 20 74 68 65 20 72 65 73 | 70 6f 6e 73 69 62 69 6c | the res|ponsibil|
|00001290| 69 74 79 20 6f 66 20 74 | 68 65 20 20 64 72 69 76 |ity of t|he driv|
|000012a0| 65 72 20 74 6f 20 64 69 | 73 70 6f 73 65 20 6f 66 |er to di|spose of|
|000012b0| 20 69 74 73 65 6c 66 20 | 69 66 20 61 20 66 61 69 | itself |if a fai|
|000012c0| 6c 75 72 65 20 6f 63 63 | 75 72 73 2e 0d 49 66 20 |lure occ|urs..If |
|000012d0| 74 68 65 72 65 20 69 73 | 20 69 6e 73 75 66 66 69 |there is| insuffi|
|000012e0| 63 69 65 6e 74 20 6d 65 | 6d 6f 72 79 20 69 6e 20 |cient me|mory in |
|000012f0| 74 68 65 20 53 79 73 74 | 65 6d 20 68 65 61 70 20 |the Syst|em heap |
|00001300| 74 6f 20 6c 6f 61 64 20 | 74 68 65 20 72 65 73 6f |to load |the reso|
|00001310| 75 72 63 65 2c 20 74 68 | 65 20 41 44 42 53 20 77 |urce, th|e ADBS w|
|00001320| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 65 78 65 63 75 |ill not |be execu|
|00001330| 74 65 64 2c 20 61 6e 64 | 20 74 68 65 20 53 79 73 |ted, and| the Sys|
|00001340| 74 65 6d 20 63 6f 6e 74 | 69 6e 75 65 73 20 6f 6e |tem cont|inues on|
|00001350| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 20 41 44 42 | to the |next ADB|
|00001360| 53 20 72 65 73 6f 75 72 | 63 65 2e 20 20 46 6f 72 |S resour|ce. For|
|00001370| 20 74 68 69 73 20 72 65 | 61 73 6f 6e 2c 20 74 68 | this re|ason, th|
|00001380| 65 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 41 44 |e size o|f the AD|
|00001390| 42 53 20 72 65 73 6f 75 | 72 63 65 20 73 68 6f 75 |BS resou|rce shou|
|000013a0| 6c 64 20 62 65 20 6b 65 | 70 74 20 61 73 20 73 6d |ld be ke|pt as sm|
|000013b0| 61 6c 6c 20 61 73 20 70 | 6f 73 73 69 62 6c 65 2e |all as p|ossible.|
|000013c0| 20 20 54 68 69 73 20 63 | 6f 6e 64 69 74 69 6f 6e | This c|ondition|
|000013d0| 20 73 68 6f 75 6c 64 20 | 6f 6e 6c 79 20 6f 63 63 | should |only occ|
|000013e0| 75 72 20 75 6e 64 65 72 | 20 53 79 73 74 65 6d 20 |ur under| System |
|000013f0| 36 2e 30 2e 78 20 61 6e | 64 20 65 61 72 6c 69 65 |6.0.x an|d earlie|
|00001400| 72 2e 0d 41 20 74 79 70 | 69 63 61 6c 20 27 41 44 |r..A typ|ical 'AD|
|00001410| 42 53 27 20 72 65 73 6f | 75 72 63 65 20 61 6c 6c |BS' reso|urce all|
|00001420| 6f 63 61 74 65 73 20 73 | 70 61 63 65 20 69 6e 20 |ocates s|pace in |
|00001430| 74 68 65 20 73 79 73 74 | 65 6d 20 68 65 61 70 20 |the syst|em heap |
|00001440| 66 6f 72 20 69 74 73 20 | 73 65 72 76 69 63 65 20 |for its |service |
|00001450| 72 6f 75 74 69 6e 65 20 | 61 6e 64 2c 20 6f 70 74 |routine |and, opt|
|00001460| 69 6f 6e 61 6c 2c 20 64 | 61 74 61 20 61 72 65 61 |ional, d|ata area|
|00001470| 2e 20 20 4e 65 78 74 2c | 20 69 74 20 6d 6f 76 65 |. Next,| it move|
|00001480| 73 20 74 68 65 20 73 65 | 72 76 69 63 65 20 72 6f |s the se|rvice ro|
|00001490| 75 74 69 6e 65 20 69 6e | 74 6f 20 74 68 65 20 61 |utine in|to the a|
|000014a0| 6c 6c 6f 63 61 74 65 64 | 20 73 70 61 63 65 20 61 |llocated| space a|
|000014b0| 6e 64 20 69 6e 69 74 69 | 61 6c 69 7a 65 73 20 74 |nd initi|alizes t|
|000014c0| 68 65 20 64 61 74 61 20 | 61 72 65 61 2c 20 69 66 |he data |area, if|
|000014d0| 20 6e 65 63 65 73 73 61 | 72 79 2e 20 20 54 68 69 | necessa|ry. Thi|
|000014e0| 73 20 63 6f 64 65 20 73 | 68 6f 75 6c 64 20 61 6c |s code s|hould al|
|000014f0| 73 6f 20 69 6e 73 74 61 | 6c 6c 20 61 6e 20 5f 41 |so insta|ll an _A|
|00001500| 44 42 52 65 49 6e 69 74 | 20 70 72 65 70 72 6f 63 |DBReInit| preproc|
|00001510| 65 73 73 69 6e 67 20 72 | 6f 75 74 69 6e 65 20 74 |essing r|outine t|
|00001520| 6f 20 64 65 61 6c 6c 6f | 63 61 74 65 20 74 68 65 |o deallo|cate the|
|00001530| 20 6d 65 6d 6f 72 79 20 | 75 73 65 64 20 62 79 20 | memory |used by |
|00001540| 74 68 65 20 73 65 72 76 | 69 63 65 20 72 6f 75 74 |the serv|ice rout|
|00001550| 69 6e 65 20 28 49 6e 73 | 69 64 65 20 4d 61 63 69 |ine (Ins|ide Maci|
|00001560| 6e 74 6f 73 68 20 56 2d | 33 36 37 29 2e 0d 57 68 |ntosh V-|367)..Wh|
|00001570| 65 6e 20 74 68 65 20 73 | 79 73 74 65 6d 20 6c 6f |en the s|ystem lo|
|00001580| 61 64 73 20 61 6e 64 20 | 65 78 65 63 75 74 65 73 |ads and |executes|
|00001590| 20 61 6e 20 27 41 44 42 | 53 27 20 72 65 73 6f 75 | an 'ADB|S' resou|
|000015a0| 72 63 65 2c 20 69 74 20 | 70 61 73 73 65 73 20 74 |rce, it |passes t|
|000015b0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 61 72 |he follo|wing par|
|000015c0| 61 6d 65 74 65 72 73 3a | 0d 41 30 20 3d 09 41 64 |ameters:|.A0 =.Ad|
|000015d0| 64 72 65 73 73 20 6f 66 | 20 27 41 44 42 53 27 20 |dress of| 'ADBS' |
|000015e0| 72 65 73 6f 75 72 63 65 | 20 69 6e 20 6d 65 6d 6f |resource| in memo|
|000015f0| 72 79 2e 0d 44 30 20 3d | 09 41 44 42 20 64 65 76 |ry..D0 =|.ADB dev|
|00001600| 69 63 65 20 61 64 64 72 | 65 73 73 20 28 30 2d 31 |ice addr|ess (0-1|
|00001610| 35 29 2e 20 20 54 68 69 | 73 20 61 64 64 72 65 73 |5). Thi|s addres|
|00001620| 73 20 6d 61 79 20 62 65 | 20 64 69 66 66 65 72 65 |s may be| differe|
|00001630| 6e 74 20 74 68 61 6e 20 | 74 68 65 20 d2 6f 72 69 |nt than |the .ori|
|00001640| 67 69 6e 61 6c 20 61 64 | 64 72 65 73 73 2c d3 20 |ginal ad|dress,. |
|00001650| 09 73 69 6e 63 65 20 69 | 74 20 6f 63 63 75 72 73 |.since i|t occurs|
|00001660| 20 61 66 74 65 72 20 61 | 64 64 72 65 73 73 20 72 | after a|ddress r|
|00001670| 65 73 6f 6c 75 74 69 6f | 6e 2e 0d 44 31 20 3d 09 |esolutio|n..D1 =.|
|00001680| 41 44 42 20 44 65 76 69 | 63 65 20 54 79 70 65 20 |ADB Devi|ce Type |
|00001690| 28 73 61 6d 65 20 61 73 | 20 74 68 65 20 68 61 6e |(same as| the han|
|000016a0| 64 6c 65 72 20 49 44 29 | 0d 57 69 74 68 20 74 68 |dler ID)|.With th|
|000016b0| 69 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |is infor|mation, |
|000016c0| 74 68 65 20 27 41 44 42 | 53 27 20 63 6f 64 65 20 |the 'ADB|S' code |
|000016d0| 63 61 6e 20 63 61 6c 6c | 20 5f 53 65 74 41 44 42 |can call| _SetADB|
|000016e0| 49 6e 66 6f 20 74 6f 20 | 69 6e 73 74 61 6c 6c 20 |Info to |install |
|000016f0| 74 68 65 20 73 65 72 76 | 69 63 65 20 72 6f 75 74 |the serv|ice rout|
|00001700| 69 6e 65 20 61 6e 64 20 | 64 61 74 61 20 61 72 65 |ine and |data are|
|00001710| 61 2e 20 20 54 68 65 20 | 69 6e 73 74 61 6c 6c 65 |a. The |installe|
|00001720| 72 20 73 68 6f 75 6c 64 | 20 6d 61 6b 65 20 73 75 |r should| make su|
|00001730| 72 65 20 74 68 65 20 68 | 61 6e 64 6c 65 72 20 49 |re the h|andler I|
|00001740| 44 20 28 44 65 76 69 63 | 65 20 54 79 70 65 29 20 |D (Devic|e Type) |
|00001750| 69 73 20 74 68 65 20 6f | 6e 65 20 69 74 20 65 78 |is the o|ne it ex|
|00001760| 70 65 63 74 73 2e 0d 4e | 6f 74 65 3a 09 50 72 65 |pects..N|ote:.Pre|
|00001770| 76 69 6f 75 73 20 76 65 | 72 73 69 6f 6e 73 20 6f |vious ve|rsions o|
|00001780| 66 20 74 68 69 73 20 6e | 6f 74 65 20 61 64 76 69 |f this n|ote advi|
|00001790| 73 65 64 20 75 73 69 6e | 67 20 61 6e 20 27 49 4e |sed usin|g an 'IN|
|000017a0| 49 54 27 20 72 65 73 6f | 75 72 63 65 20 61 73 20 |IT' reso|urce as |
|000017b0| 61 6e 20 61 6c 74 65 72 | 6e 61 74 69 76 65 20 6d |an alter|native m|
|000017c0| 65 74 68 6f 64 20 66 6f | 72 20 69 6e 73 74 61 6c |ethod fo|r instal|
|000017d0| 6c 69 6e 67 20 41 44 42 | 20 73 65 72 76 69 63 65 |ling ADB| service|
|000017e0| 20 72 6f 75 74 69 6e 65 | 2e 20 20 41 70 70 6c 65 | routine|. Apple|
|000017f0| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 61 64 76 69 73 | no long|er advis|
|00001800| 65 73 20 74 68 69 73 20 | 6d 65 74 68 6f 64 2e 20 |es this |method. |
|00001810| 20 41 44 42 20 73 65 72 | 76 69 63 65 20 72 6f 75 | ADB ser|vice rou|
|00001820| 74 69 6e 65 73 20 73 68 | 6f 75 6c 64 20 6f 6e 6c |tines sh|ould onl|
|00001830| 79 20 62 65 20 69 6e 73 | 74 61 6c 6c 65 64 20 62 |y be ins|talled b|
|00001840| 79 20 61 6e 20 27 41 44 | 42 53 27 20 72 65 73 6f |y an 'AD|BS' reso|
|00001850| 75 72 63 65 20 6c 6f 63 | 61 74 65 64 20 69 6e 20 |urce loc|ated in |
|00001860| 74 68 65 20 53 79 73 74 | 65 6d 20 66 69 6c 65 20 |the Syst|em file |
|00001870| 28 73 65 65 20 4d 61 63 | 44 54 53 20 53 61 6d 70 |(see Mac|DTS Samp|
|00001880| 6c 65 20 43 6f 64 65 20 | 23 31 37 2c 20 54 62 6c |le Code |#17, Tbl|
|00001890| 74 44 72 76 72 20 66 6f | 72 20 61 6e 20 65 78 61 |tDrvr fo|r an exa|
|000018a0| 6d 70 6c 65 29 2e 20 20 | 27 49 4e 49 54 27 20 72 |mple). |'INIT' r|
|000018b0| 65 73 6f 75 72 63 65 73 | 20 61 6e 64 20 61 70 70 |esources| and app|
|000018c0| 6c 69 63 61 74 69 6f 6e | 2d 62 61 73 65 64 20 69 |lication|-based i|
|000018d0| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 6d 65 74 68 |nstallat|ion meth|
|000018e0| 6f 64 73 20 64 6f 20 6e | 6f 74 20 77 6f 72 6b 20 |ods do n|ot work |
|000018f0| 6f 6e 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |on the M|acintosh|
|00001900| 20 50 6f 72 74 61 62 6c | 65 2c 20 62 65 63 61 75 | Portabl|e, becau|
|00001910| 73 65 20 74 68 65 20 62 | 75 73 20 61 6e 64 20 41 |se the b|us and A|
|00001920| 44 42 20 4d 61 6e 61 67 | 65 72 20 6d 61 79 20 62 |DB Manag|er may b|
|00001930| 65 20 72 65 2d 69 6e 69 | 74 69 61 6c 69 7a 65 64 |e re-ini|tialized|
|00001940| 20 61 66 74 65 72 20 77 | 61 6b 69 6e 67 20 75 70 | after w|aking up|
|00001950| 2e 20 20 50 61 72 74 20 | 6f 66 20 74 68 65 20 72 |. Part |of the r|
|00001960| 65 2d 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |e-initia|lization|
|00001970| 20 70 72 6f 63 65 73 73 | 20 6c 6f 61 64 73 20 61 | process| loads a|
|00001980| 6e 64 20 65 78 65 63 75 | 74 65 73 20 74 68 65 20 |nd execu|tes the |
|00001990| 27 41 44 42 53 27 20 72 | 65 73 6f 75 72 63 65 73 |'ADBS' r|esources|
|000019a0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|000019b0| 20 74 68 65 20 64 65 76 | 69 63 65 73 20 70 72 65 | the dev|ices pre|
|000019c0| 73 65 6e 74 20 6f 6e 20 | 74 68 65 20 62 75 73 2e |sent on |the bus.|
|000019d0| 20 20 49 66 20 61 20 73 | 65 72 76 69 63 65 20 72 | If a s|ervice r|
|000019e0| 6f 75 74 69 6e 65 20 69 | 73 20 69 6e 73 74 61 6c |outine i|s instal|
|000019f0| 6c 65 64 20 75 73 69 6e | 67 20 74 68 65 20 27 49 |led usin|g the 'I|
|00001a00| 4e 49 54 27 20 6f 72 20 | 61 70 70 6c 69 63 61 74 |NIT' or |applicat|
|00001a10| 69 6f 6e 20 6d 65 74 68 | 6f 64 2c 20 69 74 20 64 |ion meth|od, it d|
|00001a20| 6f 65 73 20 6e 6f 74 20 | 67 65 74 20 72 65 2d 69 |oes not |get re-i|
|00001a30| 6e 73 74 61 6c 6c 65 64 | 20 77 68 65 6e 20 74 68 |nstalled| when th|
|00001a40| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6f 72 74 |e Macint|osh Port|
|00001a50| 61 62 6c 65 20 77 61 6b | 65 73 20 75 70 2e 0d 47 |able wak|es up..G|
|00001a60| 65 6e 65 72 61 6c 20 41 | 44 42 20 4d 61 6e 61 67 |eneral A|DB Manag|
|00001a70| 65 72 20 52 75 6e 2d 54 | 69 6d 65 20 42 65 68 61 |er Run-T|ime Beha|
|00001a80| 76 69 6f 72 0d 53 69 6e | 63 65 20 74 68 65 20 69 |vior.Sin|ce the i|
|00001a90| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00001aa0| 20 74 68 65 20 41 44 42 | 20 4d 61 6e 61 67 65 72 | the ADB| Manager|
|00001ab0| 20 6f 6e 20 4d 61 63 69 | 6e 74 6f 73 68 20 43 50 | on Maci|ntosh CP|
|00001ac0| 55 73 20 68 61 73 20 76 | 61 72 69 65 64 20 73 6c |Us has v|aried sl|
|00001ad0| 69 67 68 74 6c 79 2c 20 | 69 74 d5 73 20 75 73 65 |ightly, |it.s use|
|00001ae0| 66 75 6c 20 74 6f 20 6b | 6e 6f 77 20 77 68 61 74 |ful to k|now what|
|00001af0| 20 62 65 68 61 76 69 6f | 72 20 74 6f 20 65 78 70 | behavio|r to exp|
|00001b00| 65 63 74 2c 20 61 6e 64 | 20 77 68 61 74 20 6e 6f |ect, and| what no|
|00001b10| 74 20 74 6f 20 64 65 70 | 65 6e 64 20 75 70 6f 6e |t to dep|end upon|
|00001b20| 2e 20 20 53 79 73 74 65 | 6d 20 54 6f 6f 6c 73 20 |. Syste|m Tools |
|00001b30| 64 69 73 6b 73 20 61 66 | 74 65 72 20 36 2e 30 2e |disks af|ter 6.0.|
|00001b40| 34 20 6d 61 6b 65 20 74 | 68 65 20 41 44 42 20 4d |4 make t|he ADB M|
|00001b50| 61 6e 61 67 65 72 20 63 | 6f 6e 73 69 73 74 65 6e |anager c|onsisten|
|00001b60| 74 20 6f 6e 20 61 6c 6c | 20 4d 61 63 69 6e 74 6f |t on all| Macinto|
|00001b70| 73 68 20 6d 6f 64 65 6c | 73 2e 0d 41 64 64 72 65 |sh model|s..Addre|
|00001b80| 73 73 20 52 65 73 6f 6c | 75 74 69 6f 6e 0d 49 74 |ss Resol|ution.It|
|00001b90| 20 69 73 20 69 6d 70 6f | 72 74 61 6e 74 20 74 68 | is impo|rtant th|
|00001ba0| 61 74 20 64 65 76 69 63 | 65 73 20 69 6d 70 6c 65 |at devic|es imple|
|00001bb0| 6d 65 6e 74 20 74 68 65 | 20 63 6f 6c 6c 69 73 69 |ment the| collisi|
|00001bc0| 6f 6e 20 64 65 74 65 63 | 74 69 6f 6e 20 61 6e 64 |on detec|tion and|
|00001bd0| 20 61 64 64 72 65 73 73 | 20 6d 6f 76 65 61 62 69 | address| moveabi|
|00001be0| 6c 69 74 79 20 74 6f 20 | 70 72 65 76 65 6e 74 20 |lity to |prevent |
|00001bf0| 70 6f 73 73 69 62 6c 65 | 20 63 6f 6e 66 6c 69 63 |possible| conflic|
|00001c00| 74 73 20 62 65 74 77 65 | 65 6e 20 64 65 76 69 63 |ts betwe|en devic|
|00001c10| 65 73 20 74 68 61 74 20 | 68 61 76 65 20 74 68 65 |es that |have the|
|00001c20| 20 73 61 6d 65 20 64 65 | 66 61 75 6c 74 20 61 64 | same de|fault ad|
|00001c30| 64 72 65 73 73 2e 0d 41 | 75 74 6f 2d 50 6f 6c 6c |dress..A|uto-Poll|
|00001c40| 69 6e 67 0d 41 6c 6c 20 | 64 65 76 69 63 65 73 20 |ing.All |devices |
|00001c50| 6f 6e 20 74 68 65 20 62 | 75 73 20 73 68 6f 75 6c |on the b|us shoul|
|00001c60| 64 20 65 78 70 65 63 74 | 2c 20 61 6e 64 20 62 65 |d expect|, and be|
|00001c70| 20 61 62 6c 65 20 74 6f | 20 68 61 6e 64 6c 65 2c | able to| handle,|
|00001c80| 20 62 65 69 6e 67 20 61 | 75 74 6f 2d 70 6f 6c 6c | being a|uto-poll|
|00001c90| 65 64 2e 20 49 66 20 74 | 68 65 79 20 64 6f 20 6e |ed. If t|hey do n|
|00001ca0| 6f 74 20 68 61 76 65 20 | 61 20 72 65 61 73 6f 6e |ot have |a reason|
|00001cb0| 20 74 6f 20 72 65 73 70 | 6f 6e 64 2c 20 74 68 65 | to resp|ond, the|
|00001cc0| 79 20 73 68 6f 75 6c 64 | 20 73 69 6d 70 6c 79 20 |y should| simply |
|00001cd0| 69 67 6e 6f 72 65 20 74 | 68 65 20 70 6f 6c 6c 20 |ignore t|he poll |
|00001ce0| 28 74 69 6d 65 20 6f 75 | 74 29 2e 20 20 49 66 20 |(time ou|t). If |
|00001cf0| 74 68 65 20 41 44 42 20 | 4d 61 6e 61 67 65 72 20 |the ADB |Manager |
|00001d00| 61 75 74 6f 2d 70 6f 6c | 6c 73 20 61 20 64 65 76 |auto-pol|ls a dev|
|00001d10| 69 63 65 20 77 68 69 63 | 68 20 68 61 73 20 6e 6f |ice whic|h has no|
|00001d20| 20 73 65 72 76 69 63 65 | 20 72 6f 75 74 69 6e 65 | service| routine|
|00001d30| 20 69 6e 73 74 61 6c 6c | 65 64 2c 20 69 74 20 73 | install|ed, it s|
|00001d40| 69 6d 70 6c 79 20 74 68 | 72 6f 77 73 20 61 77 61 |imply th|rows awa|
|00001d50| 79 20 61 6e 79 20 64 61 | 74 61 20 69 74 20 6d 61 |y any da|ta it ma|
|00001d60| 79 20 68 61 76 65 20 67 | 6f 74 74 65 6e 20 66 72 |y have g|otten fr|
|00001d70| 6f 6d 20 74 68 65 20 64 | 65 76 69 63 65 2e 20 20 |om the d|evice. |
|00001d80| 54 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 53 45 |The Maci|ntosh SE|
|00001d90| 2c 20 53 45 2f 33 30 2c | 20 49 49 2c 20 49 49 78 |, SE/30,| II, IIx|
|00001da0| 2c 20 61 6e 64 20 49 49 | 63 78 20 69 6d 70 6c 65 |, and II|cx imple|
|00001db0| 6d 65 6e 74 61 74 69 6f | 6e 73 20 6f 66 20 74 68 |mentatio|ns of th|
|00001dc0| 65 20 41 44 42 20 4d 61 | 6e 61 67 65 72 20 6f 6e |e ADB Ma|nager on|
|00001dd0| 6c 79 20 61 75 74 6f 2d | 70 6f 6c 6c 73 20 64 65 |ly auto-|polls de|
|00001de0| 76 69 63 65 73 20 74 68 | 61 74 20 68 61 76 65 20 |vices th|at have |
|00001df0| 70 72 65 76 69 6f 75 73 | 6c 79 20 72 65 73 70 6f |previous|ly respo|
|00001e00| 6e 64 65 64 20 74 6f 20 | 61 6e 20 61 75 74 6f 2d |nded to |an auto-|
|00001e10| 70 6f 6c 6c 2c 20 6f 72 | 20 74 68 61 74 20 68 61 |poll, or| that ha|
|00001e20| 76 65 20 72 65 71 75 65 | 73 74 65 64 20 73 65 72 |ve reque|sted ser|
|00001e30| 76 69 63 65 20 28 62 79 | 20 61 73 73 65 72 74 69 |vice (by| asserti|
|00001e40| 6e 67 20 53 52 51 29 2e | 20 20 49 6e 20 61 64 64 |ng SRQ).| In add|
|00001e50| 69 74 69 6f 6e 2c 20 74 | 68 65 20 4d 61 63 69 6e |ition, t|he Macin|
|00001e60| 74 6f 73 68 20 49 49 63 | 69 20 61 6e 64 20 50 6f |tosh IIc|i and Po|
|00001e70| 72 74 61 62 6c 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |rtable i|mplement|
|00001e80| 61 74 69 6f 6e 73 20 61 | 6c 73 6f 20 61 75 74 6f |ations a|lso auto|
|00001e90| 2d 70 6f 6c 6c 20 74 68 | 65 20 6c 61 73 74 20 64 |-poll th|e last d|
|00001ea0| 65 76 69 63 65 20 61 64 | 64 72 65 73 73 65 64 20 |evice ad|dressed |
|00001eb0| 62 79 20 61 6e 20 5f 41 | 44 42 4f 70 20 63 6f 6d |by an _A|DBOp com|
|00001ec0| 6d 61 6e 64 d1 72 65 67 | 61 72 64 6c 65 73 73 20 |mand.reg|ardless |
|00001ed0| 6f 66 20 77 68 65 74 68 | 65 72 20 74 68 65 79 20 |of wheth|er they |
|00001ee0| 68 61 76 65 20 61 20 73 | 65 72 76 69 63 65 20 72 |have a s|ervice r|
|00001ef0| 6f 75 74 69 6e 65 20 69 | 6e 73 74 61 6c 6c 65 64 |outine i|nstalled|
|00001f00| 20 28 76 69 61 20 74 68 | 65 20 5f 53 65 74 41 44 | (via th|e _SetAD|
|00001f10| 42 49 6e 66 6f 20 63 61 | 6c 6c 29 2e 0d 53 79 73 |BInfo ca|ll)..Sys|
|00001f20| 74 65 6d 20 54 6f 6f 6c | 73 20 64 69 73 6b 73 20 |tem Tool|s disks |
|00001f30| 6c 61 74 65 72 20 74 68 | 61 6e 20 36 2e 30 2e 34 |later th|an 6.0.4|
|00001f40| 20 70 61 74 63 68 20 74 | 68 65 20 41 44 42 20 4d | patch t|he ADB M|
|00001f50| 61 6e 61 67 65 72 20 73 | 6f 20 74 68 61 74 20 69 |anager s|o that i|
|00001f60| 66 20 74 68 65 20 64 65 | 76 69 63 65 20 64 6f 65 |f the de|vice doe|
|00001f70| 73 20 6e 6f 74 20 68 61 | 76 65 20 61 20 73 65 72 |s not ha|ve a ser|
|00001f80| 76 69 63 65 20 72 6f 75 | 74 69 6e 65 20 69 6e 73 |vice rou|tine ins|
|00001f90| 74 61 6c 6c 65 64 20 28 | 77 69 74 68 20 5f 53 65 |talled (|with _Se|
|00001fa0| 74 41 44 42 49 6e 66 6f | 29 2c 20 69 74 20 73 68 |tADBInfo|), it sh|
|00001fb0| 6f 75 6c 64 20 6e 6f 74 | 20 67 65 74 20 61 75 74 |ould not| get aut|
|00001fc0| 6f 2d 70 6f 6c 6c 65 64 | 2e 20 20 49 6e 20 74 68 |o-polled|. In th|
|00001fd0| 65 20 75 6e 6c 69 6b 65 | 6c 79 20 63 61 73 65 20 |e unlike|ly case |
|00001fe0| 74 68 61 74 20 53 52 51 | 20 69 73 20 61 63 74 69 |that SRQ| is acti|
|00001ff0| 76 65 20 61 6e 64 20 6e | 6f 6e 65 20 6f 66 20 74 |ve and n|one of t|
|00002000| 68 65 20 64 65 76 69 63 | 65 73 20 77 69 74 68 20 |he devic|es with |
|00002010| 72 6f 75 74 69 6e 65 73 | 20 69 6e 73 74 61 6c 6c |routines| install|
|00002020| 65 64 20 72 65 73 70 6f | 6e 64 2c 20 74 68 65 20 |ed respo|nd, the |
|00002030| 41 44 42 20 4d 61 6e 61 | 67 65 72 20 70 6f 6c 6c |ADB Mana|ger poll|
|00002040| 73 20 61 6c 6c 20 64 65 | 76 69 63 65 73 20 28 65 |s all de|vices (e|
|00002050| 76 65 72 79 20 61 64 64 | 72 65 73 73 29 20 74 72 |very add|ress) tr|
|00002060| 79 69 6e 67 20 74 6f 20 | 63 6c 65 61 72 20 74 68 |ying to |clear th|
|00002070| 65 20 53 52 51 2e 20 54 | 68 69 73 20 63 61 73 65 |e SRQ. T|his case|
|00002080| 20 69 73 20 77 68 79 20 | 61 6c 6c 20 64 65 76 69 | is why |all devi|
|00002090| 63 65 73 20 6f 6e 20 74 | 68 65 20 62 75 73 20 73 |ces on t|he bus s|
|000020a0| 68 6f 75 6c 64 20 65 78 | 70 65 63 74 2c 20 61 6e |hould ex|pect, an|
|000020b0| 64 20 62 65 20 61 62 6c | 65 20 74 6f 20 68 61 6e |d be abl|e to han|
|000020c0| 64 6c 65 2c 20 62 65 69 | 6e 67 20 61 75 74 6f 2d |dle, bei|ng auto-|
|000020d0| 70 6f 6c 6c 65 64 2e 0d | 4e 6f 74 65 3a 09 5f 41 |polled..|Note:._A|
|000020e0| 44 42 4f 70 20 63 6f 6d | 6d 61 6e 64 73 20 61 6c |DBOp com|mands al|
|000020f0| 77 61 79 73 20 68 61 76 | 65 20 70 72 69 6f 72 69 |ways hav|e priori|
|00002100| 74 79 20 6f 76 65 72 20 | 61 75 74 6f 2d 70 6f 6c |ty over |auto-pol|
|00002110| 6c 69 6e 67 20 61 6e 64 | 20 53 52 51 20 70 6f 6c |ling and| SRQ pol|
|00002120| 6c 69 6e 67 2e 20 20 57 | 68 65 6e 65 76 65 72 20 |ling. W|henever |
|00002130| 74 68 65 72 65 20 61 72 | 65 20 70 65 6e 64 69 6e |there ar|e pendin|
|00002140| 67 20 5f 41 44 42 4f 70 | 20 63 6f 6d 6d 61 6e 64 |g _ADBOp| command|
|00002150| 73 20 69 6e 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |s in the| command|
|00002160| 20 71 75 65 75 65 2c 20 | 74 68 65 79 20 61 72 65 | queue, |they are|
|00002170| 20 65 78 65 63 75 74 65 | 64 20 62 65 66 6f 72 65 | execute|d before|
|00002180| 20 74 68 65 20 68 6f 73 | 74 20 72 65 73 75 6d 65 | the hos|t resume|
|00002190| 73 20 61 75 74 6f 2d 70 | 6f 6c 6c 69 6e 67 2e 20 |s auto-p|olling. |
|000021a0| 20 54 68 65 72 65 66 6f | 72 65 2c 20 61 70 70 6c | Therefo|re, appl|
|000021b0| 69 63 61 74 69 6f 6e 73 | 20 73 68 6f 75 6c 64 20 |ications| should |
|000021c0| 6e 6f 74 20 69 73 73 75 | 65 20 5f 41 44 42 4f 70 |not issu|e _ADBOp|
|000021d0| 20 63 6f 6d 6d 61 6e 64 | 73 20 72 65 70 65 61 74 | command|s repeat|
|000021e0| 65 64 6c 79 2c 20 6b 65 | 65 70 69 6e 67 20 74 68 |edly, ke|eping th|
|000021f0| 65 20 63 6f 6d 6d 61 6e | 64 20 71 75 65 75 65 20 |e comman|d queue |
|00002200| 66 75 6c 6c 2e 20 20 44 | 6f 69 6e 67 20 73 6f 20 |full. D|oing so |
|00002210| 72 65 73 75 6c 74 73 20 | 69 6e 20 65 66 66 65 63 |results |in effec|
|00002220| 74 69 76 65 6c 79 20 d2 | 6c 6f 63 6b 69 6e 67 20 |tively .|locking |
|00002230| 75 70 d3 20 74 68 65 20 | 6d 6f 75 73 65 20 61 6e |up. the |mouse an|
|00002240| 64 20 6b 65 79 62 6f 61 | 72 64 2c 20 77 68 69 63 |d keyboa|rd, whic|
|00002250| 68 20 72 65 6c 79 20 75 | 70 6f 6e 20 74 68 65 20 |h rely u|pon the |
|00002260| 61 75 74 6f 2d 70 6f 6c | 6c 69 6e 67 20 61 6e 64 |auto-pol|ling and|
|00002270| 20 53 52 51 20 70 6f 6c | 6c 69 6e 67 20 74 6f 20 | SRQ pol|ling to |
|00002280| 70 72 6f 76 69 64 65 20 | 75 73 65 72 20 69 6e 70 |provide |user inp|
|00002290| 75 74 2e 0d 53 52 51 20 | 50 6f 6c 6c 69 6e 67 0d |ut..SRQ |Polling.|
|000022a0| 53 69 6e 63 65 20 74 68 | 65 20 41 44 42 20 4d 61 |Since th|e ADB Ma|
|000022b0| 6e 61 67 65 72 20 6d 61 | 79 20 62 65 20 70 6f 6c |nager ma|y be pol|
|000022c0| 6c 69 6e 67 20 61 6e 79 | 20 64 65 76 69 63 65 20 |ling any| device |
|000022d0| 6f 6e 20 74 68 65 20 62 | 75 73 20 77 68 65 6e 20 |on the b|us when |
|000022e0| 61 6e 20 53 52 51 20 68 | 61 70 70 65 6e 73 2c 20 |an SRQ h|appens, |
|000022f0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 73 |an appli|cation s|
|00002300| 68 6f 75 6c 64 20 6e 6f | 74 20 72 65 6c 79 20 75 |hould no|t rely u|
|00002310| 70 6f 6e 20 74 68 65 20 | 73 65 71 75 65 6e 63 65 |pon the |sequence|
|00002320| 20 69 6e 20 77 68 69 63 | 68 20 69 74 20 70 6f 6c | in whic|h it pol|
|00002330| 6c 73 20 64 65 76 69 63 | 65 73 2e 20 20 49 6e 73 |ls devic|es. Ins|
|00002340| 74 65 61 64 2c 20 73 69 | 6d 70 6c 79 20 72 65 6d |tead, si|mply rem|
|00002350| 65 6d 62 65 72 20 74 68 | 61 74 20 74 68 65 20 41 |ember th|at the A|
|00002360| 44 42 20 4d 61 6e 61 67 | 65 72 20 70 6f 6c 6c 73 |DB Manag|er polls|
|00002370| 20 61 6c 6c 20 64 65 76 | 69 63 65 73 2c 20 69 6e | all dev|ices, in|
|00002380| 20 74 75 72 6e 2c 20 6f | 6e 20 74 68 65 20 62 75 | turn, o|n the bu|
|00002390| 73 20 75 6e 74 69 6c 20 | 53 52 51 20 69 73 20 6e |s until |SRQ is n|
|000023a0| 6f 20 6c 6f 6e 67 65 72 | 20 61 73 73 65 72 74 65 |o longer| asserte|
|000023b0| 64 2e 20 20 41 66 74 65 | 72 20 53 52 51 20 68 61 |d. Afte|r SRQ ha|
|000023c0| 73 20 62 65 65 6e 20 73 | 61 74 69 73 66 69 65 64 |s been s|atisfied|
|000023d0| 2c 20 74 68 65 20 41 44 | 42 20 4d 61 6e 61 67 65 |, the AD|B Manage|
|000023e0| 72 20 62 65 67 69 6e 73 | 20 61 75 74 6f 2d 70 6f |r begins| auto-po|
|000023f0| 6c 6c 69 6e 67 20 74 68 | 65 20 6c 61 73 74 20 64 |lling th|e last d|
|00002400| 65 76 69 63 65 20 66 72 | 6f 6d 20 77 68 69 63 68 |evice fr|om which|
|00002410| 20 69 74 20 67 6f 74 20 | 64 61 74 61 2e 0d 41 44 | it got |data..AD|
|00002420| 42 20 4d 61 6e 61 67 65 | 72 20 42 75 67 73 20 d5 |B Manage|r Bugs .|
|00002430| 6e 20 46 69 78 65 73 0d | 5f 41 44 42 4f 70 20 54 |n Fixes.|_ADBOp T|
|00002440| 61 6c 6b 20 43 6f 6d 6d | 61 6e 64 0d 54 68 72 6f |alk Comm|and.Thro|
|00002450| 75 67 68 20 53 79 73 74 | 65 6d 20 53 6f 66 74 77 |ugh Syst|em Softw|
|00002460| 61 72 65 20 36 2e 30 2e | 34 2c 20 74 68 65 72 65 |are 6.0.|4, there|
|00002470| 20 69 73 20 61 20 62 75 | 67 20 69 6e 20 74 68 65 | is a bu|g in the|
|00002480| 20 4d 61 63 69 6e 74 6f | 73 68 20 53 45 2c 20 53 | Macinto|sh SE, S|
|00002490| 45 2f 33 30 2c 20 49 49 | 2c 20 49 49 78 2c 20 61 |E/30, II|, IIx, a|
|000024a0| 6e 64 20 49 49 63 78 20 | 69 6d 70 6c 65 6d 65 6e |nd IIcx |implemen|
|000024b0| 74 61 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 41 |tations |of the A|
|000024c0| 44 42 20 4d 61 6e 61 67 | 65 72 20 77 68 65 72 65 |DB Manag|er where|
|000024d0| 20 74 68 65 20 63 6f 75 | 6e 74 20 62 79 74 65 20 | the cou|nt byte |
|000024e0| 72 65 74 75 72 6e 65 64 | 20 62 79 20 61 6e 20 5f |returned| by an _|
|000024f0| 41 44 42 4f 70 20 54 61 | 6c 6b 20 63 6f 6d 6d 61 |ADBOp Ta|lk comma|
|00002500| 6e 64 20 74 68 61 74 20 | 74 69 6d 65 64 20 6f 75 |nd that |timed ou|
|00002510| 74 20 69 73 20 6e 6f 74 | 20 73 65 74 20 74 6f 20 |t is not| set to |
|00002520| 7a 65 72 6f 20 74 6f 20 | 72 65 66 6c 65 63 74 20 |zero to |reflect |
|00002530| 74 68 61 74 20 6e 6f 20 | 62 79 74 65 73 20 77 65 |that no |bytes we|
|00002540| 72 65 20 74 72 61 6e 73 | 66 65 72 72 65 64 2e 20 |re trans|ferred. |
|00002550| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 74 68 | In addi|tion, th|
|00002560| 65 20 74 77 6f 20 62 79 | 74 65 73 20 66 6f 6c 6c |e two by|tes foll|
|00002570| 6f 77 69 6e 67 20 69 74 | 20 61 72 65 20 62 6f 74 |owing it| are bot|
|00002580| 68 20 24 46 46 20 28 74 | 68 65 73 65 20 73 68 6f |h $FF (t|hese sho|
|00002590| 75 6c 64 20 62 65 20 69 | 67 6e 6f 72 65 64 29 2e |uld be i|gnored).|
|000025a0| 20 20 4f 6e 20 74 68 65 | 20 4d 61 63 69 6e 74 6f | On the| Macinto|
|000025b0| 73 68 20 49 49 63 69 20 | 61 6e 64 20 50 6f 72 74 |sh IIci |and Port|
|000025c0| 61 62 6c 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |able imp|lementat|
|000025d0| 69 6f 6e 73 2c 20 74 68 | 65 20 63 6f 75 6e 74 20 |ions, th|e count |
|000025e0| 62 79 74 65 20 66 6f 72 | 20 61 20 74 69 6d 65 20 |byte for| a time |
|000025f0| 6f 75 74 20 69 73 20 7a | 65 72 6f 2c 20 61 6e 64 |out is z|ero, and|
|00002600| 20 61 6e 79 20 62 79 74 | 65 73 20 77 68 69 63 68 | any byt|es which|
|00002610| 20 66 6f 6c 6c 6f 77 20 | 69 74 20 73 68 6f 75 6c | follow |it shoul|
|00002620| 64 2c 20 6f 66 20 63 6f | 75 72 73 65 2c 20 62 65 |d, of co|urse, be|
|00002630| 20 69 67 6e 6f 72 65 64 | 2e 20 20 54 68 69 73 20 | ignored|. This |
|00002640| 62 75 67 20 69 73 20 66 | 69 78 65 64 20 69 6e 20 |bug is f|ixed in |
|00002650| 53 79 73 74 65 6d 20 54 | 6f 6f 6c 73 20 64 69 73 |System T|ools dis|
|00002660| 6b 73 20 61 66 74 65 72 | 20 36 2e 30 2e 34 2e 0d |ks after| 6.0.4..|
|00002670| 5f 41 44 42 4f 70 20 4c | 69 73 74 65 6e 20 43 6f |_ADBOp L|isten Co|
|00002680| 6d 6d 61 6e 64 0d 54 68 | 65 72 65 20 69 73 20 61 |mmand.Th|ere is a|
|00002690| 6c 73 6f 20 61 20 62 75 | 67 20 69 6e 20 74 68 65 |lso a bu|g in the|
|000026a0| 20 4d 61 63 69 6e 74 6f | 73 68 20 53 45 2c 20 53 | Macinto|sh SE, S|
|000026b0| 45 2f 33 30 2c 20 49 49 | 2c 20 49 49 78 2c 20 61 |E/30, II|, IIx, a|
|000026c0| 6e 64 20 49 49 63 78 20 | 69 6d 70 6c 65 6d 65 6e |nd IIcx |implemen|
|000026d0| 74 61 74 69 6f 6e 73 20 | 77 68 65 72 65 20 74 68 |tations |where th|
|000026e0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 79 74 65 |e number| of byte|
|000026f0| 73 20 74 72 61 6e 73 66 | 65 72 72 65 64 20 77 61 |s transf|erred wa|
|00002700| 73 20 6f 6e 65 20 6f 66 | 66 20 66 72 6f 6d 20 74 |s one of|f from t|
|00002710| 68 65 20 73 75 70 70 6c | 69 65 64 20 63 6f 75 6e |he suppl|ied coun|
|00002720| 74 20 62 79 74 65 2e 20 | 20 4f 6e 20 74 68 65 20 |t byte. | On the |
|00002730| 4d 61 63 69 6e 74 6f 73 | 68 20 49 49 63 69 20 61 |Macintos|h IIci a|
|00002740| 6e 64 20 4d 61 63 69 6e | 74 6f 73 68 20 50 6f 72 |nd Macin|tosh Por|
|00002750| 74 61 62 6c 65 20 69 6d | 70 6c 65 6d 65 6e 74 61 |table im|plementa|
|00002760| 74 69 6f 6e 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |tions th|e number|
|00002770| 20 6f 66 20 62 79 74 65 | 73 20 74 72 61 6e 73 66 | of byte|s transf|
|00002780| 65 72 72 65 64 20 69 73 | 20 77 68 61 74 20 74 68 |erred is| what th|
|00002790| 65 20 63 6f 75 6e 74 20 | 62 79 74 65 20 73 70 65 |e count |byte spe|
|000027a0| 63 69 66 69 65 73 2e 20 | 20 54 68 69 73 20 62 75 |cifies. | This bu|
|000027b0| 67 20 69 73 20 66 69 78 | 65 64 20 69 6e 20 53 79 |g is fix|ed in Sy|
|000027c0| 73 74 65 6d 20 54 6f 6f | 6c 73 20 64 69 73 6b 73 |stem Too|ls disks|
|000027d0| 20 61 66 74 65 72 20 36 | 2e 30 2e 34 2e 0d 54 68 | after 6|.0.4..Th|
|000027e0| 65 72 65 20 69 73 20 61 | 20 62 75 67 20 69 6e 20 |ere is a| bug in |
|000027f0| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 50 6f |the Maci|ntosh Po|
|00002800| 72 74 61 62 6c 65 20 77 | 68 65 72 65 20 61 6c 6c |rtable w|here all|
|00002810| 20 4c 69 73 74 65 6e 20 | 63 6f 6d 6d 61 6e 64 73 | Listen |commands|
|00002820| 20 77 69 74 68 20 61 20 | 64 61 74 61 20 63 6f 75 | with a |data cou|
|00002830| 6e 74 20 67 72 65 61 74 | 65 72 20 74 68 61 6e 20 |nt great|er than |
|00002840| 73 69 78 20 73 65 6e 64 | 20 67 61 72 62 61 67 65 |six send| garbage|
|00002850| 20 69 6e 20 74 68 65 20 | 73 65 76 65 6e 74 68 20 | in the |seventh |
|00002860| 61 6e 64 20 65 69 67 68 | 74 68 20 62 79 74 65 73 |and eigh|th bytes|
|00002870| 2e 20 20 54 68 69 73 20 | 62 75 67 20 69 73 20 66 |. This |bug is f|
|00002880| 69 78 65 64 20 69 6e 20 | 53 79 73 74 65 6d 20 54 |ixed in |System T|
|00002890| 6f 6f 6c 73 20 64 69 73 | 6b 73 20 61 66 74 65 72 |ools dis|ks after|
|000028a0| 20 36 2e 30 2e 34 2e 0d | 5f 41 44 42 4f 70 20 43 | 6.0.4..|_ADBOp C|
|000028b0| 6f 6d 70 6c 65 74 69 6f | 6e 20 52 6f 75 74 69 6e |ompletio|n Routin|
|000028c0| 65 73 0d 54 68 65 72 65 | 20 69 73 20 79 65 74 20 |es.There| is yet |
|000028d0| 61 6e 6f 74 68 65 72 20 | 62 75 67 20 69 6e 20 74 |another |bug in t|
|000028e0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 53 45 2c |he Macin|tosh SE,|
|000028f0| 20 53 45 2f 33 30 2c 20 | 49 49 2c 20 49 49 78 2c | SE/30, |II, IIx,|
|00002900| 20 61 6e 64 20 49 49 63 | 78 20 69 6d 70 6c 65 6d | and IIc|x implem|
|00002910| 65 6e 74 61 74 69 6f 6e | 73 20 6f 66 20 74 68 65 |entation|s of the|
|00002920| 20 41 44 42 20 4d 61 6e | 61 67 65 72 20 77 68 65 | ADB Man|ager whe|
|00002930| 72 65 20 74 68 65 20 63 | 6f 6d 70 6c 65 74 69 6f |re the c|ompletio|
|00002940| 6e 20 72 6f 75 74 69 6e | 65 73 20 70 61 73 73 65 |n routin|es passe|
|00002950| 64 20 74 6f 20 74 68 65 | 20 5f 41 44 42 4f 70 20 |d to the| _ADBOp |
|00002960| 72 6f 75 74 69 6e 65 20 | 61 72 65 20 6e 6f 74 20 |routine |are not |
|00002970| 61 6c 77 61 79 73 20 63 | 61 6c 6c 65 64 2e 20 20 |always c|alled. |
|00002980| 54 68 69 73 20 62 75 67 | 20 69 73 20 6e 6f 74 20 |This bug| is not |
|00002990| 70 72 65 73 65 6e 74 20 | 69 6e 20 74 68 65 20 4d |present |in the M|
|000029a0| 61 63 69 6e 74 6f 73 68 | 20 49 49 63 69 20 61 6e |acintosh| IIci an|
|000029b0| 64 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6f 72 74 |d Macint|osh Port|
|000029c0| 61 62 6c 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |able imp|lementat|
|000029d0| 69 6f 6e 73 20 61 6e 64 | 20 69 73 20 66 69 78 65 |ions and| is fixe|
|000029e0| 64 20 69 6e 20 53 79 73 | 74 65 6d 20 54 6f 6f 6c |d in Sys|tem Tool|
|000029f0| 73 20 64 69 73 6b 73 20 | 61 66 74 65 72 20 36 2e |s disks |after 6.|
|00002a00| 30 2e 34 2e 0d 5f 41 44 | 42 52 65 49 6e 69 74 0d |0.4.._AD|BReInit.|
|00002a10| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00002a20| 2c 20 56 6f 6c 75 6d 65 | 20 56 20 73 74 61 74 65 |, Volume| V state|
|00002a30| 73 20 74 68 61 74 20 5f | 41 44 42 52 65 49 6e 69 |s that _|ADBReIni|
|00002a40| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 63 61 6c 6c |t should| be call|
|00002a50| 65 64 20 77 69 74 68 20 | 61 20 64 65 76 69 63 65 |ed with |a device|
|00002a60| 20 69 73 20 61 64 64 65 | 64 20 74 6f 20 74 68 65 | is adde|d to the|
|00002a70| 20 62 75 73 20 77 68 69 | 6c 65 20 74 68 65 20 73 | bus whi|le the s|
|00002a80| 79 73 74 65 6d 20 69 73 | 20 72 75 6e 6e 69 6e 67 |ystem is| running|
|00002a90| 2e 20 20 54 68 69 73 20 | 73 74 61 74 65 6d 65 6e |. This |statemen|
|00002aa0| 74 20 69 73 20 6d 69 73 | 6c 65 61 64 69 6e 67 2e |t is mis|leading.|
|00002ab0| 20 20 44 6f 20 6e 6f 74 | 20 61 74 74 61 63 68 20 | Do not| attach |
|00002ac0| 64 65 76 69 63 65 73 20 | 6f 66 20 61 6e 79 20 6b |devices |of any k|
|00002ad0| 69 6e 64 20 74 6f 20 61 | 20 4d 61 63 69 6e 74 6f |ind to a| Macinto|
|00002ae0| 73 68 20 77 68 69 6c 65 | 20 74 68 65 20 70 6f 77 |sh while| the pow|
|00002af0| 65 72 20 69 73 20 6f 6e | 2e 20 20 49 66 20 74 68 |er is on|. If th|
|00002b00| 65 72 65 20 69 73 20 61 | 20 64 65 76 69 63 65 20 |ere is a| device |
|00002b10| 74 68 61 74 20 63 61 6e | 20 62 65 20 61 64 64 65 |that can| be adde|
|00002b20| 64 20 74 6f 20 74 68 65 | 20 62 75 73 20 76 69 61 |d to the| bus via|
|00002b30| 20 73 6f 66 74 77 61 72 | 65 20 28 69 2e 65 2e 2c | softwar|e (i.e.,|
|00002b40| 20 61 20 64 65 76 69 63 | 65 20 69 73 20 61 6c 72 | a devic|e is alr|
|00002b50| 65 61 64 79 20 61 74 74 | 61 63 68 65 64 2c 20 61 |eady att|ached, a|
|00002b60| 6e 64 20 61 6e 20 61 64 | 64 69 74 69 6f 6e 61 6c |nd an ad|ditional|
|00002b70| 20 d2 76 69 72 74 75 61 | 6c d3 20 64 65 76 69 63 | .virtua|l. devic|
|00002b80| 65 20 63 61 6e 20 62 65 | 20 61 64 64 65 64 20 75 |e can be| added u|
|00002b90| 6e 64 65 72 20 73 6f 66 | 74 77 61 72 65 20 63 6f |nder sof|tware co|
|00002ba0| 6e 74 72 6f 6c 29 2c 20 | 74 68 65 6e 20 69 74 20 |ntrol), |then it |
|00002bb0| 6d 61 79 20 62 65 20 75 | 73 65 66 75 6c 20 74 6f |may be u|seful to|
|00002bc0| 20 63 61 6c 6c 20 5f 41 | 44 42 52 65 49 6e 69 74 | call _A|DBReInit|
|00002bd0| 2c 20 62 75 74 20 69 74 | 20 69 73 20 6e 6f 74 20 |, but it| is not |
|00002be0| 61 62 73 6f 6c 75 74 65 | 6c 79 20 6e 65 63 65 73 |absolute|ly neces|
|00002bf0| 73 61 72 79 2e 20 20 44 | 65 76 69 63 65 73 20 63 |sary. D|evices c|
|00002c00| 61 6e 20 62 65 20 61 64 | 64 65 64 20 62 79 20 73 |an be ad|ded by s|
|00002c10| 69 6d 70 6c 79 20 69 6e | 73 74 61 6c 6c 69 6e 67 |imply in|stalling|
|00002c20| 20 61 20 73 65 72 76 69 | 63 65 20 72 6f 75 74 69 | a servi|ce routi|
|00002c30| 6e 65 20 66 6f 72 20 74 | 68 65 20 61 70 70 72 6f |ne for t|he appro|
|00002c40| 70 72 69 61 74 65 20 61 | 64 64 72 65 73 73 20 75 |priate a|ddress u|
|00002c50| 73 69 6e 67 20 74 68 65 | 20 5f 53 65 74 41 44 42 |sing the| _SetADB|
|00002c60| 49 6e 66 6f 20 63 61 6c | 6c 2e 0d 48 6f 77 65 76 |Info cal|l..Howev|
|00002c70| 65 72 2c 20 69 66 20 79 | 6f 75 20 64 6f 20 70 6c |er, if y|ou do pl|
|00002c80| 61 6e 20 6f 6e 20 75 73 | 69 6e 67 20 5f 41 44 42 |an on us|ing _ADB|
|00002c90| 52 65 49 6e 69 74 2c 20 | 74 68 65 6e 20 79 6f 75 |ReInit, |then you|
|00002ca0| 20 73 68 6f 75 6c 64 20 | 6b 6e 6f 77 20 61 62 6f | should |know abo|
|00002cb0| 75 74 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ut the f|ollowing|
|00002cc0| 20 62 75 67 20 77 69 74 | 68 20 6b 65 79 62 6f 61 | bug wit|h keyboa|
|00002cd0| 72 64 20 6c 61 79 6f 75 | 74 73 20 28 27 4b 43 48 |rd layou|ts ('KCH|
|00002ce0| 52 27 20 72 65 73 6f 75 | 72 63 65 73 29 20 6f 74 |R' resou|rces) ot|
|00002cf0| 68 65 72 20 74 68 61 6e | 20 74 68 65 20 73 74 61 |her than| the sta|
|00002d00| 6e 64 61 72 64 20 55 2e | 53 2e 20 6c 61 79 6f 75 |ndard U.|S. layou|
|00002d10| 74 20 28 49 44 20 3d 20 | 30 29 2e 20 20 4d 6f 73 |t (ID = |0). Mos|
|00002d20| 74 20 69 6e 74 65 72 6e | 61 74 69 6f 6e 61 6c 20 |t intern|ational |
|00002d30| 73 79 73 74 65 6d 73 20 | 75 73 65 20 61 6c 74 65 |systems |use alte|
|00002d40| 72 6e 61 74 65 20 27 4b | 43 48 52 27 20 72 65 73 |rnate 'K|CHR' res|
|00002d50| 6f 75 72 63 65 73 20 61 | 6e 64 20 6d 61 79 20 70 |ources a|nd may p|
|00002d60| 65 72 6d 69 74 20 73 77 | 69 74 63 68 69 6e 67 20 |ermit sw|itching |
|00002d70| 62 65 74 77 65 65 6e 20 | 74 68 65 6d 2e 20 20 4f |between |them. O|
|00002d80| 6e 20 74 68 65 73 65 20 | 73 79 73 74 65 6d 73 2c |n these |systems,|
|00002d90| 20 77 68 65 6e 20 5f 41 | 44 42 52 65 49 6e 69 74 | when _A|DBReInit|
|00002da0| 20 69 73 20 63 61 6c 6c | 65 64 2c 20 69 74 20 64 | is call|ed, it d|
|00002db0| 6f 65 73 20 6e 6f 74 20 | 72 65 69 6e 73 74 61 6c |oes not |reinstal|
|00002dc0| 6c 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 27 4b |l the cu|rrent 'K|
|00002dd0| 43 48 52 27 20 72 65 73 | 6f 75 72 63 65 2c 20 62 |CHR' res|ource, b|
|00002de0| 75 74 20 69 6e 73 74 65 | 61 64 20 72 65 69 6e 73 |ut inste|ad reins|
|00002df0| 74 61 6c 6c 73 20 74 68 | 65 20 64 65 66 61 75 6c |talls th|e defaul|
|00002e00| 74 20 20 55 2e 53 2e 20 | 27 4b 43 48 52 27 20 72 |t U.S. |'KCHR' r|
|00002e10| 65 73 6f 75 72 63 65 20 | 28 49 44 20 3d 20 30 29 |esource |(ID = 0)|
|00002e20| 2e 20 20 54 68 69 73 20 | 70 72 6f 62 6c 65 6d 20 |. This |problem |
|00002e30| 69 73 20 65 76 69 64 65 | 6e 74 20 6f 6e 20 74 68 |is evide|nt on th|
|00002e40| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6f 72 74 |e Macint|osh Port|
|00002e50| 61 62 6c 65 2c 20 73 69 | 6e 63 65 20 69 74 20 6d |able, si|nce it m|
|00002e60| 61 79 20 63 61 6c 6c 20 | 03 20 77 68 65 6e 20 69 |ay call |. when i|
|00002e70| 74 20 77 61 6b 65 73 20 | 75 70 2e 20 20 54 68 69 |t wakes |up. Thi|
|00002e80| 73 20 62 75 67 20 69 73 | 20 66 69 78 65 64 20 69 |s bug is| fixed i|
|00002e90| 6e 20 53 79 73 74 65 6d | 73 20 54 6f 6f 6c 73 20 |n System|s Tools |
|00002ea0| 64 69 73 6b 73 20 61 66 | 74 65 72 20 36 2e 30 2e |disks af|ter 6.0.|
|00002eb0| 34 2e 0d 55 73 65 72 73 | 20 63 61 6e 20 66 69 78 |4..Users| can fix|
|00002ec0| 20 74 68 69 73 20 70 72 | 6f 62 6c 65 6d 20 62 79 | this pr|oblem by|
|00002ed0| 20 74 6f 67 67 6c 69 6e | 67 20 74 68 65 20 6b 65 | togglin|g the ke|
|00002ee0| 79 62 6f 61 72 64 20 6d | 61 70 70 69 6e 67 20 73 |yboard m|apping s|
|00002ef0| 65 6c 65 63 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |election| in the |
|00002f00| 43 6f 6e 74 72 6f 6c 20 | 50 61 6e 65 6c 2e 20 20 |Control |Panel. |
|00002f10| 46 72 6f 6d 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |From an |applicat|
|00002f20| 69 6f 6e 2c 20 6f 6e 65 | 20 63 6f 75 6c 64 20 69 |ion, one| could i|
|00002f30| 6e 73 74 61 6c 6c 20 61 | 6e 20 5f 41 44 42 52 65 |nstall a|n _ADBRe|
|00002f40| 49 6e 69 74 20 70 6f 73 | 74 2d 70 72 6f 63 65 73 |Init pos|t-proces|
|00002f50| 73 69 6e 67 20 72 6f 75 | 74 69 6e 65 20 28 69 6e |sing rou|tine (in|
|00002f60| 20 74 68 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 | the low|-memory |
|00002f70| 76 61 72 69 61 62 6c 65 | 20 6a 41 44 42 50 72 6f |variable| jADBPro|
|00002f80| 63 2c 20 73 65 65 20 49 | 6e 73 69 64 65 20 4d 61 |c, see I|nside Ma|
|00002f90| 63 69 6e 74 6f 73 68 2c | 20 56 6f 6c 75 6d 65 20 |cintosh,| Volume |
|00002fa0| 56 2c 20 54 68 65 20 41 | 70 70 6c 65 20 44 65 73 |V, The A|pple Des|
|00002fb0| 6b 74 6f 70 20 42 75 73 | 2c 20 70 70 2e 20 33 36 |ktop Bus|, pp. 36|
|00002fc0| 37 2d 33 36 38 29 2c 20 | 77 68 69 63 68 20 72 65 |7-368), |which re|
|00002fd0| 69 6e 73 74 61 6c 6c 73 | 20 74 68 65 20 63 6f 72 |installs| the cor|
|00002fe0| 72 65 63 74 20 27 4b 43 | 48 52 27 20 72 65 73 6f |rect 'KC|HR' reso|
|00002ff0| 75 72 63 65 20 75 73 69 | 6e 67 20 74 68 65 20 53 |urce usi|ng the S|
|00003000| 63 72 69 70 74 20 4d 61 | 6e 61 67 65 72 20 5f 47 |cript Ma|nager _G|
|00003010| 65 74 45 6e 76 69 72 6f | 6e 73 20 61 6e 64 20 5f |etEnviro|ns and _|
|00003020| 4b 65 79 53 63 72 69 70 | 74 20 63 61 6c 6c 73 20 |KeyScrip|t calls |
|00003030| 28 73 65 65 20 54 65 63 | 68 6e 69 63 61 6c 20 4e |(see Tec|hnical N|
|00003040| 6f 74 65 20 23 31 36 30 | 2c 20 4b 65 79 20 4d 61 |ote #160|, Key Ma|
|00003050| 70 70 69 6e 67 29 20 61 | 66 74 65 72 20 61 20 63 |pping) a|fter a c|
|00003060| 61 6c 6c 20 74 6f 20 5f | 41 44 42 52 65 49 6e 69 |all to _|ADBReIni|
|00003070| 74 2e 0d 20 20 20 20 20 | 20 20 4b 65 79 53 63 72 |t.. | KeyScr|
|00003080| 69 70 74 28 49 4e 54 45 | 47 45 52 28 47 65 74 45 |ipt(INTE|GER(GetE|
|00003090| 6e 76 69 72 6f 6e 73 28 | 73 6d 4b 65 79 53 63 72 |nvirons(|smKeyScr|
|000030a0| 69 70 74 29 29 29 3b 0d | 54 68 69 73 20 63 6f 64 |ipt)));.|This cod|
|000030b0| 65 20 6d 61 6b 65 73 20 | 61 20 5f 4b 65 79 53 63 |e makes |a _KeySc|
|000030c0| 72 69 70 74 20 63 61 6c | 6c 20 77 69 74 68 20 74 |ript cal|l with t|
|000030d0| 68 65 20 63 75 72 72 65 | 6e 74 20 6b 65 79 62 6f |he curre|nt keybo|
|000030e0| 61 72 64 20 73 63 72 69 | 70 74 20 28 61 73 20 64 |ard scri|pt (as d|
|000030f0| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 65 20 |escribed| in the |
|00003100| 27 69 74 6c 62 27 20 73 | 79 73 74 65 6d 20 72 65 |'itlb' s|ystem re|
|00003110| 73 6f 75 72 63 65 29 2e | 20 20 54 68 65 20 27 4b |source).| The 'K|
|00003120| 43 48 52 27 20 61 6e 64 | 20 27 53 49 43 4e 27 20 |CHR' and| 'SICN' |
|00003130| 49 44 73 20 66 6f 72 20 | 74 68 61 74 20 73 63 72 |IDs for |that scr|
|00003140| 69 70 74 20 61 72 65 20 | 61 6c 72 65 61 64 79 20 |ipt are |already |
|00003150| 73 65 74 75 70 20 69 6e | 20 74 68 65 20 27 69 74 |setup in| the 'it|
|00003160| 6c 62 27 20 72 65 73 6f | 75 72 63 65 20 61 6e 64 |lb' reso|urce and|
|00003170| 20 69 6e 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 | in the |appropri|
|00003180| 61 74 65 20 73 63 72 69 | 70 74 d5 73 20 6c 6f 63 |ate scri|pt.s loc|
|00003190| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 2e 20 20 46 |al varia|bles. F|
|000031a0| 6f 72 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |or an ex|ample of|
|000031b0| 20 61 20 6a 41 44 42 50 | 72 6f 63 2c 20 73 65 65 | a jADBP|roc, see|
|000031c0| 20 4d 61 63 44 54 53 20 | 53 61 6d 70 6c 65 20 43 | MacDTS |Sample C|
|000031d0| 6f 64 65 20 23 31 37 2c | 20 54 62 6c 74 44 72 76 |ode #17,| TbltDrv|
|000031e0| 72 2e 0d 41 6e 73 77 65 | 72 73 20 74 6f 20 43 6f |r..Answe|rs to Co|
|000031f0| 6d 6d 6f 6e 6c 79 2d 41 | 73 6b 65 64 20 41 44 42 |mmonly-A|sked ADB|
|00003200| 20 51 75 65 73 74 69 6f | 6e 73 0d 51 75 65 73 74 | Questio|ns.Quest|
|00003210| 69 6f 6e 3a 09 49 20 6e | 65 65 64 20 69 6e 66 6f |ion:.I n|eed info|
|00003220| 72 6d 61 74 69 6f 6e 20 | 6f 6e 20 64 65 76 65 6c |rmation |on devel|
|00003230| 6f 70 69 6e 67 20 61 6e | 20 41 70 70 6c 65 20 44 |oping an| Apple D|
|00003240| 65 73 6b 74 6f 70 20 42 | 75 73 20 70 72 6f 64 75 |esktop B|us produ|
|00003250| 63 74 2e 20 28 48 65 79 | 2c 20 74 68 61 74 d5 73 |ct. (Hey|, that.s|
|00003260| 20 6e 6f 74 20 61 20 71 | 75 65 73 74 69 6f 6e 21 | not a q|uestion!|
|00003270| 29 0d 41 6e 73 77 65 72 | 3a 09 41 70 70 6c 65 d5 |).Answer|:.Apple.|
|00003280| 73 20 44 65 73 6b 74 6f | 70 20 42 75 73 20 61 6e |s Deskto|p Bus an|
|00003290| 64 20 41 44 42 20 44 65 | 76 69 63 65 20 53 70 65 |d ADB De|vice Spe|
|000032a0| 63 69 66 69 63 61 74 69 | 6f 6e 73 20 61 72 65 20 |cificati|ons are |
|000032b0| 61 20 6c 69 63 65 6e 73 | 61 62 6c 65 20 70 72 6f |a licens|able pro|
|000032c0| 64 75 63 74 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |duct ava|ilable t|
|000032d0| 68 72 6f 75 67 68 20 53 | 6f 66 74 77 61 72 65 20 |hrough S|oftware |
|000032e0| 4c 69 63 65 6e 73 69 6e | 67 2e 20 20 46 6f 72 20 |Licensin|g. For |
|000032f0| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00003300| 2c 20 63 6f 6e 74 61 63 | 74 3a 0d 09 41 70 70 6c |, contac|t:..Appl|
|00003310| 65 20 53 6f 66 74 77 61 | 72 65 20 4c 69 63 65 6e |e Softwa|re Licen|
|00003320| 73 69 6e 67 0d 09 41 70 | 70 6c 65 20 43 6f 6d 70 |sing..Ap|ple Comp|
|00003330| 75 74 65 72 2c 20 49 6e | 63 2e 2c 0d 09 32 30 35 |uter, In|c.,..205|
|00003340| 32 35 20 4d 61 72 69 61 | 6e 69 20 41 76 65 6e 75 |25 Maria|ni Avenu|
|00003350| 65 2c 20 4d 2f 53 20 33 | 38 2d 49 0d 09 43 75 70 |e, M/S 3|8-I..Cup|
|00003360| 65 72 74 69 6e 6f 2c 20 | 43 41 2c 20 39 35 30 31 |ertino, |CA, 9501|
|00003370| 34 0d 09 28 34 30 38 29 | 20 39 37 34 2d 34 36 36 |4..(408)| 974-466|
|00003380| 37 0d 09 41 70 70 6c 65 | 4c 69 6e 6b 3a 20 20 53 |7..Apple|Link: S|
|00003390| 77 2e 4c 69 63 65 6e 73 | 65 0d 09 49 6e 74 65 72 |w.Licens|e..Inter|
|000033a0| 6e 65 74 3a 20 20 53 77 | 2e 4c 69 63 65 6e 73 65 |net: Sw|.License|
|000033b0| 40 41 70 70 6c 65 4c 69 | 6e 6b 2e 41 70 70 6c 65 |@AppleLi|nk.Apple|
|000033c0| 2e 63 6f 6d 0d 09 09 41 | 64 64 69 74 69 6f 6e 61 |.com...A|dditiona|
|000033d0| 6c 20 41 44 42 20 72 65 | 66 65 72 65 6e 63 65 73 |l ADB re|ferences|
|000033e0| 20 61 72 65 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a | are as |follows:|
|000033f0| 0d 09 4d 61 63 69 6e 74 | 6f 73 68 0d 09 49 6e 73 |..Macint|osh..Ins|
|00003400| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 2c 20 56 |ide Maci|ntosh, V|
|00003410| 6f 6c 75 6d 65 20 56 2c | 20 54 68 65 20 41 70 70 |olume V,| The App|
|00003420| 6c 65 20 44 65 73 6b 74 | 6f 70 20 42 75 73 0d 09 |le Deskt|op Bus..|
|00003430| 4d 61 63 69 6e 74 6f 73 | 68 20 46 61 6d 69 6c 79 |Macintos|h Family|
|00003440| 20 48 61 72 64 77 61 72 | 65 20 52 65 66 65 72 65 | Hardwar|e Refere|
|00003450| 6e 63 65 0d 09 41 70 70 | 6c 65 20 49 49 0d 09 41 |nce..App|le II..A|
|00003460| 70 70 6c 65 20 49 49 67 | 73 20 48 61 72 64 77 61 |pple IIg|s Hardwa|
|00003470| 72 65 20 52 65 66 65 72 | 65 6e 63 65 20 4d 61 6e |re Refer|ence Man|
|00003480| 75 61 6c 0d 09 44 65 73 | 6b 74 6f 70 20 42 75 73 |ual..Des|ktop Bus|
|00003490| 0d 09 41 70 70 6c 65 20 | 49 49 67 73 20 46 69 72 |..Apple |IIgs Fir|
|000034a0| 6d 77 61 72 65 20 52 65 | 66 65 72 65 6e 63 65 20 |mware Re|ference |
|000034b0| 4d 61 6e 75 61 6c 0d 09 | 47 65 6e 65 72 61 6c 0d |Manual..|General.|
|000034c0| 09 42 61 75 6d 2c 20 50 | 65 74 65 72 2e 09 d2 42 |.Baum, P|eter...B|
|000034d0| 6f 61 72 64 69 6e 67 20 | 74 68 65 20 42 75 73 2c |oarding |the Bus,|
|000034e0| d3 20 4d 61 63 55 73 65 | 72 2c 20 4a 75 6c 79 20 |. MacUse|r, July |
|000034f0| 31 39 38 37 2c 20 70 2e | 20 31 34 32 2e 0d 09 d2 |1987, p.| 142....|
|00003500| 41 6e 20 4f 76 65 72 76 | 69 65 77 20 6f 66 20 41 |An Overv|iew of A|
|00003510| 70 70 6c 65 20 44 65 73 | 6b 74 6f 70 20 42 75 73 |pple Des|ktop Bus|
|00003520| 2c d3 0d 09 43 61 6c 6c | 20 41 2e 50 2e 50 2e 4c |,...Call| A.P.P.L|
|00003530| 2e 45 2e 2c 20 4a 75 6e | 65 20 31 39 38 37 2c 20 |.E., Jun|e 1987, |
|00003540| 70 2e 20 32 34 2e 0d 51 | 75 65 73 74 69 6f 6e 3a |p. 24..Q|uestion:|
|00003550| 09 49 20 77 6f 75 6c 64 | 20 6c 69 6b 65 20 74 6f |.I would| like to|
|00003560| 20 65 78 74 65 6e 64 20 | 74 68 65 20 6b 65 79 62 | extend |the keyb|
|00003570| 6f 61 72 64 20 63 61 62 | 6c 65 20 66 6f 72 20 6d |oard cab|le for m|
|00003580| 79 20 4d 61 63 69 6e 74 | 6f 73 68 2e 20 20 48 6f |y Macint|osh. Ho|
|00003590| 77 20 63 61 6e 20 49 20 | 64 6f 20 74 68 69 73 2c |w can I |do this,|
|000035a0| 20 61 6e 64 20 68 6f 77 | 20 63 61 6e 20 49 20 6d | and how| can I m|
|000035b0| 61 6b 65 20 74 68 65 20 | 65 78 74 65 6e 73 69 6f |ake the |extensio|
|000035c0| 6e 3f 0d 41 6e 73 77 65 | 72 3a 09 54 68 65 20 41 |n?.Answe|r:.The A|
|000035d0| 44 42 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |DB speci|fication|
|000035e0| 20 73 74 61 74 65 73 20 | 74 68 65 20 6d 61 78 69 | states |the maxi|
|000035f0| 6d 75 6d 20 6c 65 6e 67 | 74 68 20 6f 66 20 61 6c |mum leng|th of al|
|00003600| 6c 20 63 61 62 6c 65 73 | 20 6f 6e 20 74 68 65 20 |l cables| on the |
|00003610| 44 65 73 6b 74 6f 70 20 | 42 75 73 20 69 73 20 66 |Desktop |Bus is f|
|00003620| 69 76 65 20 6d 65 74 65 | 72 73 2e 20 20 49 66 20 |ive mete|rs. If |
|00003630| 79 6f 75 20 77 69 73 68 | 20 74 6f 20 75 73 65 20 |you wish| to use |
|00003640| 6c 6f 6e 67 65 72 20 63 | 61 62 6c 65 73 20 74 68 |longer c|ables th|
|00003650| 61 6e 20 74 68 6f 73 65 | 20 73 75 70 70 6c 69 65 |an those| supplie|
|00003660| 64 20 77 69 74 68 20 74 | 68 65 20 41 44 42 20 64 |d with t|he ADB d|
|00003670| 65 76 69 63 65 2c 20 4b | 65 6e 73 69 6e 67 74 6f |evice, K|ensingto|
|00003680| 6e 20 4d 69 63 72 6f 57 | 61 72 65 20 28 38 30 30 |n MicroW|are (800|
|00003690| 29 20 35 33 35 2d 34 32 | 34 32 2c 20 4d 6f 6e 73 |) 535-42|42, Mons|
|000036a0| 74 65 72 20 43 61 62 6c | 65 20 28 38 30 30 29 20 |ter Cabl|e (800) |
|000036b0| 33 33 31 2d 33 37 35 35 | 2c 20 61 6e 64 20 44 61 |331-3755|, and Da|
|000036c0| 74 61 20 53 70 65 63 20 | 28 38 30 30 29 20 34 33 |ta Spec |(800) 43|
|000036d0| 31 2d 38 31 32 34 20 61 | 6c 6c 20 73 75 70 70 6c |1-8124 a|ll suppl|
|000036e0| 79 20 74 68 65 6d 2e 0d | 44 69 73 63 6c 61 69 6d |y them..|Disclaim|
|000036f0| 65 72 3a 09 54 68 69 73 | 20 6c 69 73 74 69 6e 67 |er:.This| listing|
|00003700| 20 66 6f 72 20 4b 65 6e | 73 69 6e 67 74 6f 6e 20 | for Ken|sington |
|00003710| 4d 69 63 72 6f 57 61 72 | 65 2c 20 4d 6f 6e 73 74 |MicroWar|e, Monst|
|00003720| 65 72 20 43 61 62 6c 65 | 2c 20 61 6e 64 20 44 61 |er Cable|, and Da|
|00003730| 74 61 20 53 70 65 63 20 | 6e 65 69 74 68 65 72 20 |ta Spec |neither |
|00003740| 69 6d 70 6c 69 65 73 20 | 6e 6f 72 20 63 6f 6e 73 |implies |nor cons|
|00003750| 74 69 74 75 74 65 73 20 | 61 6e 20 65 6e 64 6f 72 |titutes |an endor|
|00003760| 73 65 6d 65 6e 74 20 62 | 79 20 41 70 70 6c 65 20 |sement b|y Apple |
|00003770| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 20 20 |Computer|, Inc. |
|00003780| 49 66 20 79 6f 75 72 20 | 63 6f 6d 70 61 6e 79 20 |If your |company |
|00003790| 73 75 70 70 6c 69 65 73 | 20 74 68 65 73 65 20 63 |supplies| these c|
|000037a0| 61 62 6c 65 73 20 61 6e | 64 20 79 6f 75 20 77 6f |ables an|d you wo|
|000037b0| 75 6c 64 20 6c 69 6b 65 | 20 74 6f 20 62 65 20 6c |uld like| to be l|
|000037c0| 69 73 74 65 64 2c 20 63 | 6f 6e 74 61 63 74 20 75 |isted, c|ontact u|
|000037d0| 73 20 61 74 20 74 68 65 | 20 61 64 64 72 65 73 73 |s at the| address|
|000037e0| 20 69 6e 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f | in Tech|nical No|
|000037f0| 74 65 20 23 30 2e 0d 51 | 75 65 73 74 69 6f 6e 3a |te #0..Q|uestion:|
|00003800| 09 48 6f 77 20 63 61 6e | 20 49 20 75 73 65 20 74 |.How can| I use t|
|00003810| 68 65 20 4c 45 44 73 20 | 6f 6e 20 74 68 65 20 41 |he LEDs |on the A|
|00003820| 70 70 6c 65 20 45 78 74 | 65 6e 64 65 64 20 4b 65 |pple Ext|ended Ke|
|00003830| 79 62 6f 61 72 64 3f 0d | 41 6e 73 77 65 72 3a 09 |yboard?.|Answer:.|
|00003840| 55 73 69 6e 67 20 74 68 | 65 20 4c 45 44 73 20 6f |Using th|e LEDs o|
|00003850| 6e 20 74 68 65 20 65 78 | 74 65 6e 64 65 64 20 6b |n the ex|tended k|
|00003860| 65 79 62 6f 61 72 64 20 | 69 6e 76 6f 6c 76 65 73 |eyboard |involves|
|00003870| 20 74 68 65 20 5f 41 44 | 42 4f 70 20 63 61 6c 6c | the _AD|BOp call|
|00003880| 2e 20 20 4f 6e 63 65 20 | 79 6f 75 20 64 65 74 65 |. Once |you dete|
|00003890| 72 6d 69 6e 65 20 74 68 | 61 74 20 79 6f 75 20 68 |rmine th|at you h|
|000038a0| 61 76 65 20 61 6e 20 65 | 78 74 65 6e 64 65 64 20 |ave an e|xtended |
|000038b0| 6b 65 79 62 6f 61 72 64 | 20 28 77 69 74 68 20 5f |keyboard| (with _|
|000038c0| 43 6f 75 6e 74 41 44 42 | 73 20 61 6e 64 20 5f 47 |CountADB|s and _G|
|000038d0| 65 74 49 6e 64 41 44 42 | 29 2c 20 74 68 65 6e 20 |etIndADB|), then |
|000038e0| 72 65 67 69 73 74 65 72 | 20 32 20 6f 66 20 74 68 |register| 2 of th|
|000038f0| 65 20 65 78 74 65 6e 64 | 65 64 20 6b 65 79 62 6f |e extend|ed keybo|
|00003900| 61 72 64 20 68 61 73 20 | 74 68 65 20 4c 45 44 20 |ard has |the LED |
|00003910| 74 6f 67 67 6c 65 73 20 | 69 6e 20 74 68 65 20 6c |toggles |in the l|
|00003920| 6f 77 20 33 20 62 69 74 | 73 20 6f 66 20 74 68 65 |ow 3 bit|s of the|
|00003930| 20 73 65 63 6f 6e 64 20 | 64 61 74 61 20 62 79 74 | second |data byt|
|00003940| 65 2e 0d 09 54 68 65 72 | 65 66 6f 72 65 2c 20 79 |e...Ther|efore, y|
|00003950| 6f 75 20 77 6f 75 6c 64 | 20 64 6f 20 61 20 54 61 |ou would| do a Ta|
|00003960| 6c 6b 20 74 6f 20 72 65 | 67 69 73 74 65 72 20 32 |lk to re|gister 2|
|00003970| 20 74 6f 20 68 61 76 65 | 20 74 68 65 20 64 65 76 | to have| the dev|
|00003980| 69 63 65 20 73 65 6e 64 | 20 79 6f 75 20 74 68 65 |ice send| you the|
|00003990| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 72 65 67 | content|s of reg|
|000039a0| 69 73 74 65 72 20 32 2c | 20 6d 61 6e 69 70 75 6c |ister 2,| manipul|
|000039b0| 61 74 65 20 74 68 65 20 | 6c 6f 77 20 74 68 72 65 |ate the |low thre|
|000039c0| 65 20 62 69 74 73 20 74 | 6f 20 73 65 74 20 74 68 |e bits t|o set th|
|000039d0| 65 20 4c 45 44 73 2c 20 | 61 6e 64 20 74 68 65 6e |e LEDs, |and then|
|000039e0| 20 70 61 73 73 20 74 68 | 65 20 6d 6f 64 69 66 69 | pass th|e modifi|
|000039f0| 65 64 20 72 65 67 69 73 | 74 65 72 20 32 20 62 61 |ed regis|ter 2 ba|
|00003a00| 63 6b 20 74 6f 20 74 68 | 65 20 64 65 76 69 63 65 |ck to th|e device|
|00003a10| 20 77 69 74 68 20 61 20 | 4c 69 73 74 65 6e 20 74 | with a |Listen t|
|00003a20| 6f 20 72 65 67 69 73 74 | 65 72 20 32 20 63 6f 6d |o regist|er 2 com|
|00003a30| 6d 61 6e 64 2e 0d 09 54 | 68 65 20 41 70 70 6c 65 |mand...T|he Apple|
|00003a40| 20 45 78 74 65 6e 64 65 | 64 20 4b 65 79 62 6f 61 | Extende|d Keyboa|
|00003a50| 72 64 20 68 61 73 20 61 | 6e 20 49 44 20 6f 66 20 |rd has a|n ID of |
|00003a60| 30 32 20 61 6e 64 20 61 | 20 64 65 76 69 63 65 20 |02 and a| device |
|00003a70| 68 61 6e 64 6c 65 72 20 | 49 44 20 6f 66 20 30 32 |handler |ID of 02|
|00003a80| 2c 20 77 68 69 6c 65 20 | 74 68 65 20 41 70 70 6c |, while |the Appl|
|00003a90| 65 20 53 74 61 6e 64 61 | 72 64 20 4b 65 79 62 6f |e Standa|rd Keybo|
|00003aa0| 61 72 64 20 68 61 73 20 | 61 6e 20 49 44 20 6f 66 |ard has |an ID of|
|00003ab0| 20 30 32 20 61 6e 64 20 | 61 20 64 65 76 69 63 65 | 02 and |a device|
|00003ac0| 20 68 61 6e 64 6c 65 72 | 20 49 44 20 6f 66 20 30 | handler| ID of 0|
|00003ad0| 31 2e 0d 4e 6f 74 65 3a | 09 41 74 20 74 68 69 73 |1..Note:|.At this|
|00003ae0| 20 70 6f 69 6e 74 20 69 | 74 20 69 73 20 6e 6f 74 | point i|t is not|
|00003af0| 20 63 6c 65 61 72 20 77 | 68 61 74 20 41 70 70 6c | clear w|hat Appl|
|00003b00| 65 20 68 61 73 20 69 6e | 20 6d 69 6e 64 20 66 6f |e has in| mind fo|
|00003b10| 72 20 74 68 65 73 65 20 | 4c 45 44 73 2c 20 73 6f |r these |LEDs, so|
|00003b20| 20 79 6f 75 20 61 72 65 | 20 75 73 69 6e 67 20 74 | you are| using t|
|00003b30| 68 65 6d 20 61 74 20 79 | 6f 75 72 20 6f 77 6e 20 |hem at y|our own |
|00003b40| 72 69 73 6b 2e 0d 51 75 | 65 73 74 69 6f 6e 3a 09 |risk..Qu|estion:.|
|00003b50| 49 20 61 6d 20 63 6f 6e | 66 75 73 65 64 20 61 62 |I am con|fused ab|
|00003b60| 6f 75 74 20 74 68 65 20 | 73 65 72 76 69 63 65 20 |out the |service |
|00003b70| 72 6f 75 74 69 6e 65 73 | 20 61 6e 64 20 64 61 74 |routines| and dat|
|00003b80| 61 20 61 72 65 61 73 20 | 70 61 73 73 65 64 20 69 |a areas |passed i|
|00003b90| 6e 20 74 68 65 20 5f 41 | 44 42 4f 70 20 63 61 6c |n the _A|DBOp cal|
|00003ba0| 6c 2e 20 20 57 68 61 74 | 20 64 6f 65 73 20 69 74 |l. What| does it|
|00003bb0| 20 61 6c 6c 20 6d 65 61 | 6e 3f 0d 41 6e 73 77 65 | all mea|n?.Answe|
|00003bc0| 72 3a 09 54 68 61 74 20 | d5 73 20 61 20 67 6f 6f |r:.That |.s a goo|
|00003bd0| 64 20 71 75 65 73 74 69 | 6f 6e 2e 0d 09 46 55 4e |d questi|on...FUN|
|00003be0| 43 54 49 4f 4e 20 41 44 | 42 4f 70 20 28 64 61 74 |CTION AD|BOp (dat|
|00003bf0| 61 3a 50 74 72 3b 20 63 | 6f 6d 70 52 6f 75 74 3a |a:Ptr; c|ompRout:|
|00003c00| 50 72 6f 63 50 74 72 3b | 20 62 75 66 66 65 72 3a |ProcPtr;| buffer:|
|00003c10| 50 74 72 3b 0d 09 20 20 | 20 20 20 20 20 20 20 20 |Ptr;.. | |
|00003c20| 20 20 20 20 20 63 6f 6d | 6d 61 6e 64 4e 75 6d 3a | com|mandNum:|
|00003c30| 49 4e 54 45 47 45 52 29 | 20 3a 20 4f 53 45 72 72 |INTEGER)| : OSErr|
|00003c40| 3b 0d 64 61 74 61 09 69 | 73 20 61 20 70 6f 69 6e |;.data.i|s a poin|
|00003c50| 74 65 72 20 74 6f 20 74 | 68 65 20 d2 6f 70 74 69 |ter to t|he .opti|
|00003c60| 6f 6e 61 6c 20 64 61 74 | 61 20 61 72 65 61 d3 2e |onal dat|a area..|
|00003c70| 20 20 54 68 69 73 20 61 | 72 65 61 20 69 73 20 70 | This a|rea is p|
|00003c80| 72 6f 76 69 64 65 64 20 | 66 6f 72 20 74 68 65 20 |rovided |for the |
|00003c90| 75 73 65 20 6f 66 20 74 | 68 65 20 73 65 72 76 69 |use of t|he servi|
|00003ca0| 63 65 20 72 6f 75 74 69 | 6e 65 20 28 69 66 20 6e |ce routi|ne (if n|
|00003cb0| 65 65 64 65 64 29 2e 0d | 09 63 6f 6d 70 52 6f 75 |eeded)..|.compRou|
|00003cc0| 74 09 69 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |t.is a p|ointer t|
|00003cd0| 6f 20 74 68 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e |o the co|mpletion|
|00003ce0| 20 6f 72 20 73 65 72 76 | 69 63 65 20 72 6f 75 74 | or serv|ice rout|
|00003cf0| 69 6e 65 20 74 6f 20 62 | 65 20 63 61 6c 6c 65 64 |ine to b|e called|
|00003d00| 20 77 68 65 6e 20 74 68 | 65 20 5f 41 44 42 4f 70 | when th|e _ADBOp|
|00003d10| 20 63 6f 6d 6d 61 6e 64 | 20 68 61 73 20 62 65 65 | command| has bee|
|00003d20| 6e 20 63 6f 6d 70 6c 65 | 74 65 64 20 2d 69 2e 65 |n comple|ted -i.e|
|00003d30| 20 73 65 6e 74 20 74 6f | 20 74 68 65 20 64 65 76 | sent to| the dev|
|00003d40| 69 63 65 2e 20 20 53 69 | 6e 63 65 20 74 68 65 20 |ice. Si|nce the |
|00003d50| 41 44 42 4f 70 20 66 75 | 6e 63 74 69 6f 6e 20 69 |ADBOp fu|nction i|
|00003d60| 73 20 61 6c 77 61 79 73 | 20 63 61 6c 6c 65 64 20 |s always| called |
|00003d70| 61 73 79 6e 63 68 72 6f | 6e 6f 75 73 6c 79 2c 20 |asynchro|nously, |
|00003d80| 74 68 65 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 72 |the comp|letion r|
|00003d90| 6f 75 74 69 6e 65 20 63 | 61 6e 20 62 65 20 75 73 |outine c|an be us|
|00003da0| 65 64 20 74 6f 20 66 6c | 61 67 20 63 61 6c 6c 20 |ed to fl|ag call |
|00003db0| 63 6f 6d 70 6c 65 74 69 | 6f 6e 2e 20 20 4e 6f 74 |completi|on. Not|
|00003dc0| 65 20 74 68 61 74 20 74 | 68 65 20 66 75 6e 63 74 |e that t|he funct|
|00003dd0| 69 6f 6e 20 72 65 73 75 | 6c 74 20 6f 66 20 41 44 |ion resu|lt of AD|
|00003de0| 42 4f 70 20 69 6e 64 69 | 63 61 74 65 73 20 77 68 |BOp indi|cates wh|
|00003df0| 65 74 68 65 72 20 74 68 | 65 20 63 61 6c 6c 20 77 |ether th|e call w|
|00003e00| 61 73 20 73 75 63 63 65 | 73 73 66 75 6c 6c 79 20 |as succe|ssfully |
|00003e10| 70 6c 61 63 65 64 20 6f | 6e 20 74 68 65 20 63 6f |placed o|n the co|
|00003e20| 6d 6d 61 6e 64 20 71 75 | 65 75 65 20 2d 20 6e 6f |mmand qu|eue - no|
|00003e30| 74 20 77 68 65 74 68 65 | 72 20 74 68 65 20 63 6f |t whethe|r the co|
|00003e40| 6d 6d 61 6e 64 20 68 61 | 73 20 62 65 65 6e 20 73 |mmand ha|s been s|
|00003e50| 65 6e 74 20 74 6f 20 74 | 68 65 20 64 65 76 69 63 |ent to t|he devic|
|00003e60| 65 2e 0d 09 62 75 66 66 | 65 72 09 69 73 20 61 20 |e...buff|er.is a |
|00003e70| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 20 50 61 73 |pointer |to a Pas|
|00003e80| 63 61 6c 20 73 74 72 69 | 6e 67 2c 20 77 68 69 63 |cal stri|ng, whic|
|00003e90| 68 20 69 6e 63 6c 75 64 | 65 73 20 61 20 6c 65 6e |h includ|es a len|
|00003ea0| 67 74 68 20 62 79 74 65 | 20 66 6f 6c 6c 6f 77 65 |gth byte| followe|
|00003eb0| 64 20 62 79 20 7a 65 72 | 6f 20 74 6f 20 65 69 67 |d by zer|o to eig|
|00003ec0| 68 74 20 62 79 74 65 73 | 20 6f 66 20 69 6e 66 6f |ht bytes| of info|
|00003ed0| 72 6d 61 74 69 6f 6e 2e | 20 20 54 68 65 73 65 20 |rmation.| These |
|00003ee0| 61 72 65 20 74 68 65 20 | 7a 65 72 6f 20 74 6f 20 |are the |zero to |
|00003ef0| 65 69 67 68 74 20 62 79 | 74 65 73 20 74 68 61 74 |eight by|tes that|
|00003f00| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 72 65 | a parti|cular re|
|00003f10| 67 69 73 74 65 72 20 6f | 66 20 61 6e 20 41 44 42 |gister o|f an ADB|
|00003f20| 20 64 65 76 69 63 65 20 | 69 73 20 63 61 70 61 62 | device |is capab|
|00003f30| 6c 65 20 6f 66 20 73 65 | 6e 64 69 6e 67 20 61 6e |le of se|nding an|
|00003f40| 64 20 72 65 63 65 69 76 | 69 6e 67 2e 0d 63 6f 6d |d receiv|ing..com|
|00003f50| 6d 61 6e 64 4e 75 6d 09 | 69 73 20 61 6e 20 69 6e |mandNum.|is an in|
|00003f60| 74 65 67 65 72 20 74 68 | 61 74 20 64 65 73 63 72 |teger th|at descr|
|00003f70| 69 62 65 73 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |ibes the| command|
|00003f80| 20 74 6f 20 62 65 20 73 | 65 6e 74 20 6f 76 65 72 | to be s|ent over|
|00003f90| 20 74 68 65 20 62 75 73 | 2e 0d 54 68 65 72 65 20 | the bus|..There |
|00003fa0| 69 73 20 73 6f 6d 65 20 | 63 6f 6e 66 75 73 69 6f |is some |confusio|
|00003fb0| 6e 20 6f 76 65 72 20 74 | 68 65 20 77 61 79 20 74 |n over t|he way t|
|00003fc0| 68 61 74 20 74 68 65 20 | 63 6f 6d 70 6c 65 74 69 |hat the |completi|
|00003fd0| 6f 6e 20 72 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |on routi|nes are |
|00003fe0| 63 61 6c 6c 65 64 20 66 | 72 6f 6d 20 5f 41 44 42 |called f|rom _ADB|
|00003ff0| 4f 70 2e 20 20 54 68 69 | 73 20 63 61 6c 6c 69 6e |Op. Thi|s callin|
|00004000| 67 20 6d 61 79 20 62 65 | 20 64 6f 6e 65 20 69 6e |g may be| done in|
|00004010| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c | one of |the foll|
|00004020| 6f 77 69 6e 67 20 74 68 | 72 65 65 20 77 61 79 73 |owing th|ree ways|
|00004030| 3a 0d a5 09 59 6f 75 20 | 64 6f 20 6e 6f 74 20 77 |:...You |do not w|
|00004040| 69 73 68 20 74 6f 20 68 | 61 76 65 20 61 20 63 6f |ish to h|ave a co|
|00004050| 6d 70 6c 65 74 69 6f 6e | 20 72 6f 75 74 69 6e 65 |mpletion| routine|
|00004060| 20 63 61 6c 6c 65 64 2c | 20 61 73 20 69 6e 20 61 | called,| as in a|
|00004070| 20 4c 69 73 74 65 6e 20 | 63 6f 6d 6d 61 6e 64 2e | Listen |command.|
|00004080| 20 20 50 61 73 73 20 61 | 20 4e 49 4c 20 70 6f 69 | Pass a| NIL poi|
|00004090| 6e 74 65 72 20 74 6f 20 | 5f 41 44 42 4f 70 2e 0d |nter to |_ADBOp..|
|000040a0| a5 09 59 6f 75 20 77 69 | 73 68 20 74 6f 20 63 61 |..You wi|sh to ca|
|000040b0| 6c 6c 20 74 68 65 20 72 | 6f 75 74 69 6e 65 20 61 |ll the r|outine a|
|000040c0| 6c 72 65 61 64 79 20 69 | 6e 20 75 73 65 20 62 79 |lready i|n use by|
|000040d0| 20 74 68 65 20 73 79 73 | 74 65 6d 20 66 6f 72 20 | the sys|tem for |
|000040e0| 74 68 61 74 20 61 64 64 | 72 65 73 73 20 28 61 73 |that add|ress (as|
|000040f0| 20 69 6e 73 74 61 6c 6c | 65 64 20 62 79 20 5f 53 | install|ed by _S|
|00004100| 65 74 41 44 42 49 6e 66 | 6f 29 2e 20 20 43 61 6c |etADBInf|o). Cal|
|00004110| 6c 20 5f 47 65 74 41 44 | 42 49 6e 66 6f 20 62 65 |l _GetAD|BInfo be|
|00004120| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 5f 41 44 |fore cal|ling _AD|
|00004130| 42 4f 70 2c 20 61 6e 64 | 20 70 61 73 73 20 74 68 |BOp, and| pass th|
|00004140| 65 20 72 6f 75 74 69 6e | 65 20 70 6f 69 6e 74 65 |e routin|e pointe|
|00004150| 72 20 72 65 74 75 72 6e | 65 64 20 62 79 20 5f 47 |r return|ed by _G|
|00004160| 65 74 41 44 42 49 6e 66 | 6f 20 74 6f 20 5f 41 44 |etADBInf|o to _AD|
|00004170| 42 4f 70 2e 0d 09 a5 09 | 59 6f 75 20 77 69 73 68 |BOp.....|You wish|
|00004180| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 79 6f 75 72 | to prov|ide your|
|00004190| 20 6f 77 6e 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 | own com|pletion |
|000041a0| 72 6f 75 74 69 6e 65 20 | 61 6e 64 20 64 61 74 61 |routine |and data|
|000041b0| 20 61 72 65 61 20 66 6f | 72 20 74 68 65 20 5f 41 | area fo|r the _A|
|000041c0| 44 42 4f 70 20 63 61 6c | 6c 2e 20 20 4e 6f 74 65 |DBOp cal|l. Note|
|000041d0| 20 74 68 61 74 20 74 68 | 65 20 41 44 42 4f 70 20 | that th|e ADBOp |
|000041e0| 63 61 6c 6c 20 69 73 20 | 61 6c 77 61 79 73 20 63 |call is |always c|
|000041f0| 61 6c 6c 65 64 20 61 73 | 79 6e 63 68 72 6f 6e 6f |alled as|ynchrono|
|00004200| 75 73 6c 79 2e 20 20 49 | 6e 20 74 68 69 73 20 63 |usly. I|n this c|
|00004210| 61 73 65 2c 20 73 69 6d | 70 6c 79 20 70 61 73 73 |ase, sim|ply pass|
|00004220| 20 79 6f 75 72 20 6f 77 | 6e 20 70 6f 69 6e 74 65 | your ow|n pointe|
|00004230| 72 73 20 74 6f 20 74 68 | 65 20 5f 41 44 42 4f 70 |rs to th|e _ADBOp|
|00004240| 20 63 61 6c 6c 2e 20 20 | 0d 54 68 65 20 66 6f 6c | call. |.The fol|
|00004250| 6c 6f 77 69 6e 67 20 50 | 61 73 63 61 6c 20 63 6f |lowing P|ascal co|
|00004260| 64 65 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |de demon|strates |
|00004270| 61 20 6d 65 74 68 6f 64 | 20 74 6f 20 73 79 6e 63 |a method| to sync|
|00004280| 68 72 6f 6e 6f 75 73 6c | 79 20 63 61 6c 6c 20 41 |hronousl|y call A|
|00004290| 44 42 4f 70 2e 20 20 54 | 68 69 73 20 72 6f 75 74 |DBOp. T|his rout|
|000042a0| 69 6e 65 20 69 73 20 75 | 73 65 66 75 6c 20 66 6f |ine is u|seful fo|
|000042b0| 72 20 54 61 6c 6b 20 63 | 6f 6d 6d 61 6e 64 73 2c |r Talk c|ommands,|
|000042c0| 20 77 68 65 72 65 20 74 | 68 65 20 64 72 69 76 65 | where t|he drive|
|000042d0| 72 20 6e 65 65 64 73 20 | 74 6f 20 77 61 69 74 20 |r needs |to wait |
|000042e0| 66 6f 72 20 74 68 65 20 | 64 65 76 69 63 65 20 74 |for the |device t|
|000042f0| 6f 20 72 65 74 75 72 6e | 20 64 61 74 61 2e 20 20 |o return| data. |
|00004300| 43 61 6c 6c 41 44 42 4f | 70 20 61 63 63 65 70 74 |CallADBO|p accept|
|00004310| 73 20 74 68 65 20 62 75 | 66 66 65 72 20 61 6e 64 |s the bu|ffer and|
|00004320| 20 63 6f 6d 6d 61 6e 64 | 4e 75 6d 20 70 61 72 61 | command|Num para|
|00004330| 6d 65 74 65 72 73 20 61 | 6e 64 20 73 65 74 73 20 |meters a|nd sets |
|00004340| 75 70 20 61 20 73 68 6f | 72 74 20 77 6f 72 64 20 |up a sho|rt word |
|00004350| 76 61 72 69 61 62 6c 65 | 20 22 64 6f 6e 65 22 20 |variable| "done" |
|00004360| 61 73 20 61 20 66 6c 61 | 67 20 76 61 72 69 61 62 |as a fla|g variab|
|00004370| 6c 65 2e 20 20 49 6e 69 | 74 69 61 6c 6c 79 2c 20 |le. Ini|tially, |
|00004380| 74 68 65 20 66 6c 61 67 | 20 69 73 20 73 65 74 20 |the flag| is set |
|00004390| 74 6f 20 7a 65 72 6f 2e | 20 20 43 61 6c 6c 41 44 |to zero.| CallAD|
|000043a0| 42 4f 70 20 63 61 6c 6c | 73 20 41 44 42 4f 70 20 |BOp call|s ADBOp |
|000043b0| 70 61 73 73 69 6e 67 20 | 61 20 70 6f 69 6e 74 65 |passing |a pointe|
|000043c0| 72 20 74 6f 20 74 68 65 | 20 66 6c 61 67 20 61 6e |r to the| flag an|
|000043d0| 64 20 74 6f 20 74 68 65 | 20 63 6f 6d 70 6c 65 74 |d to the| complet|
|000043e0| 69 6f 6e 20 72 6f 75 74 | 69 6e 65 2c 20 22 43 6f |ion rout|ine, "Co|
|000043f0| 6d 70 52 6f 75 74 69 6e | 65 22 2c 20 69 6e 20 61 |mpRoutin|e", in a|
|00004400| 64 64 69 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 62 |ddition |to the b|
|00004410| 75 66 66 65 72 20 61 6e | 64 20 63 6f 6d 6d 61 6e |uffer an|d comman|
|00004420| 64 4e 75 6d 20 70 61 72 | 61 6d 65 74 65 72 73 2e |dNum par|ameters.|
|00004430| 20 20 54 68 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e | The co|mpletion|
|00004440| 20 72 6f 75 74 69 6e 65 | 20 73 69 6d 70 6c 79 20 | routine| simply |
|00004450| 63 68 61 6e 67 65 73 20 | 74 68 65 20 76 61 6c 75 |changes |the valu|
|00004460| 65 20 6f 66 20 74 68 65 | 20 66 6c 61 67 20 74 6f |e of the| flag to|
|00004470| 20 2d 31 2e 20 20 41 66 | 74 65 72 20 63 61 6c 6c | -1. Af|ter call|
|00004480| 69 6e 67 20 41 44 42 4f | 70 2c 20 74 68 65 20 43 |ing ADBO|p, the C|
|00004490| 61 6c 6c 41 44 42 4f 70 | 20 66 75 6e 63 74 69 6f |allADBOp| functio|
|000044a0| 6e 20 65 6e 74 65 72 73 | 20 61 20 77 68 69 6c 65 |n enters| a while|
|000044b0| 20 6c 6f 6f 70 20 77 61 | 69 74 69 6e 67 20 66 6f | loop wa|iting fo|
|000044c0| 72 20 74 68 65 20 66 6c | 61 67 20 22 64 6f 6e 65 |r the fl|ag "done|
|000044d0| 22 20 74 6f 20 63 68 61 | 6e 67 65 20 74 6f 20 73 |" to cha|nge to s|
|000044e0| 6f 6d 65 20 6e 6f 6e 2d | 7a 65 72 6f 20 76 61 6c |ome non-|zero val|
|000044f0| 75 65 2e 0d 09 50 52 4f | 43 45 44 55 52 45 20 53 |ue...PRO|CEDURE S|
|00004500| 65 74 41 32 3b 0d 09 09 | 49 4e 4c 49 4e 45 20 24 |etA2;...|INLINE $|
|00004510| 33 34 42 43 2c 24 46 46 | 46 46 3b 09 7b 20 4d 4f |34BC,$FF|FF;.{ MO|
|00004520| 56 45 2e 57 09 23 24 46 | 46 46 46 2c 28 41 32 29 |VE.W.#$F|FFF,(A2)|
|00004530| 09 7d 0d 09 09 09 09 09 | 09 7b 20 41 32 20 70 6f |.}......|.{ A2 po|
|00004540| 69 6e 74 73 20 74 6f 20 | 74 68 65 20 76 61 72 69 |ints to |the vari|
|00004550| 61 62 6c 65 20 09 09 09 | 09 09 09 20 20 2d 20 64 |able ...|... - d|
|00004560| 6f 6e 65 20 2d 20 6f 75 | 72 20 63 6f 6d 70 6c 20 |one - ou|r compl |
|00004570| 66 6c 61 67 2e 7d 0d 09 | 09 09 09 09 09 20 20 55 |flag.}..|..... U|
|00004580| 70 6f 6e 20 65 6e 74 72 | 79 2c 20 74 68 65 20 66 |pon entr|y, the f|
|00004590| 6c 61 67 20 69 73 20 09 | 09 09 09 09 09 20 20 73 |lag is .|..... s|
|000045a0| 65 74 20 74 6f 20 7a 65 | 72 6f 2e 20 20 53 65 74 |et to ze|ro. Set|
|000045b0| 20 76 61 6c 75 65 20 09 | 7d 0d 09 09 09 09 09 09 | value .|}.......|
|000045c0| 7b 20 74 6f 20 6e 6f 6e | 2d 7a 65 72 6f 2c 20 2d |{ to non|-zero, -|
|000045d0| 31 20 75 73 65 64 20 09 | 09 09 09 09 09 20 20 68 |1 used .|..... h|
|000045e0| 65 72 65 2c 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |ere, to |indicate|
|000045f0| 20 09 09 09 09 09 09 09 | 20 20 63 6f 6d 70 6c 65 | .......| comple|
|00004600| 74 69 6f 6e 20 7d 0d 09 | 0d 09 50 52 4f 43 45 44 |tion }..|..PROCED|
|00004610| 55 52 45 20 43 6f 6d 70 | 52 6f 75 74 69 6e 65 3b |URE Comp|Routine;|
|00004620| 09 7b 20 53 61 6d 70 6c | 65 20 41 44 42 4f 70 20 |.{ Sampl|e ADBOp |
|00004630| 63 6f 6d 70 6c 65 74 69 | 6f 6e 20 72 6f 75 74 69 |completi|on routi|
|00004640| 6e 65 20 09 7d 0d 09 0d | 09 42 45 47 49 4e 0d 09 |ne .}...|.BEGIN..|
|00004650| 09 53 65 74 41 32 3b 09 | 09 09 09 7b 20 53 65 74 |.SetA2;.|...{ Set|
|00004660| 20 32 20 62 79 74 65 20 | 61 72 65 61 20 70 6f 69 | 2 byte |area poi|
|00004670| 6e 74 65 64 20 09 09 09 | 09 09 09 20 20 74 6f 20 |nted ...|... to |
|00004680| 62 79 20 41 32 20 74 6f | 20 6e 6f 6e 2d 7a 65 72 |by A2 to| non-zer|
|00004690| 6f 09 7d 0d 09 45 4e 44 | 3b 0d 09 0d 09 46 55 4e |o.}..END|;....FUN|
|000046a0| 43 54 49 4f 4e 20 43 61 | 6c 6c 41 44 42 4f 70 28 |CTION Ca|llADBOp(|
|000046b0| 62 75 66 66 65 72 3a 20 | 50 74 72 3b 20 63 6d 64 |buffer: |Ptr; cmd|
|000046c0| 4e 75 6d 3a 20 49 4e 54 | 45 47 45 52 29 3a 20 4f |Num: INT|EGER): O|
|000046d0| 53 45 72 72 3b 0d 09 7b | 20 4d 6f 64 69 66 69 65 |SErr;..{| Modifie|
|000046e0| 64 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 65 |d versio|n of the|
|000046f0| 20 41 44 42 4f 70 20 66 | 75 6e 63 74 69 6f 6e 20 | ADBOp f|unction |
|00004700| 77 68 69 63 68 20 74 61 | 6b 65 73 20 74 68 65 20 |which ta|kes the |
|00004710| 73 61 6d 65 20 09 20 20 | 61 72 67 75 6d 65 6e 74 |same . |argument|
|00004720| 73 20 61 73 20 41 44 42 | 4f 70 20 65 78 63 65 70 |s as ADB|Op excep|
|00004730| 74 20 66 6f 72 20 63 6f | 6d 70 6c 65 74 69 6f 6e |t for co|mpletion|
|00004740| 20 72 6f 75 74 69 6e 65 | 20 50 72 6f 63 50 74 72 | routine| ProcPtr|
|00004750| 2e 20 20 09 20 20 43 61 | 6c 6c 73 20 41 44 42 4f |. . Ca|lls ADBO|
|00004760| 70 20 61 73 79 6e 63 68 | 72 6f 6e 6f 75 73 6c 79 |p asynch|ronously|
|00004770| 2c 20 74 68 65 6e 20 77 | 61 69 74 73 20 75 6e 74 |, then w|aits unt|
|00004780| 69 6c 20 74 68 65 20 63 | 6f 6d 70 6c 65 74 69 6f |il the c|ompletio|
|00004790| 6e 20 09 20 20 72 6f 75 | 74 69 6e 65 20 6d 6f 64 |n . rou|tine mod|
|000047a0| 69 66 69 65 73 20 22 64 | 6f 6e 65 22 20 70 61 72 |ifies "d|one" par|
|000047b0| 61 6d 65 74 65 72 2e 09 | 7d 0d 09 56 41 52 0d 09 |ameter..|}..VAR..|
|000047c0| 09 64 6f 6e 65 3a 09 49 | 4e 54 45 47 45 52 3b 0d |.done:.I|NTEGER;.|
|000047d0| 09 09 74 65 6d 70 3a 09 | 4c 4f 4e 47 49 4e 54 3b |..temp:.|LONGINT;|
|000047e0| 0d 09 09 65 72 72 3a 09 | 4f 53 45 72 72 3b 0d 09 |...err:.|OSErr;..|
|000047f0| 09 0d 09 42 45 47 49 4e | 0d 09 09 64 6f 6e 65 20 |...BEGIN|...done |
|00004800| 3a 3d 20 30 3b 0d 09 09 | 65 72 72 20 3a 3d 20 41 |:= 0;...|err := A|
|00004810| 44 42 4f 70 28 40 64 6f | 6e 65 2c 20 40 43 6f 6d |DBOp(@do|ne, @Com|
|00004820| 70 52 6f 75 74 69 6e 65 | 2c 20 40 62 75 66 66 65 |pRoutine|, @buffe|
|00004830| 72 2c 20 63 6d 64 4e 75 | 6d 29 3b 0d 09 09 49 46 |r, cmdNu|m);...IF|
|00004840| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 54 48 45 | err = n|oErr THE|
|00004850| 4e 09 7b 20 72 65 71 75 | 65 73 74 20 73 75 63 63 |N.{ requ|est succ|
|00004860| 65 73 73 66 75 6c 6c 79 | 20 71 75 65 75 65 64 09 |essfully| queued.|
|00004870| 7d 0d 09 09 09 52 45 50 | 45 41 54 0d 09 09 09 09 |}....REP|EAT.....|
|00004880| 7b 44 65 6c 61 79 28 32 | 2c 20 74 65 6d 70 29 3b |{Delay(2|, temp);|
|00004890| 7d 09 7b 20 75 6e 63 6f | 6d 6d 65 6e 74 20 74 68 |}.{ unco|mment th|
|000048a0| 69 73 20 09 09 09 09 09 | 09 09 20 20 6c 69 6e 65 |is .....|.. line|
|000048b0| 20 61 73 20 6e 6f 74 65 | 64 20 09 09 09 09 09 09 | as note|d ......|
|000048c0| 09 20 20 62 65 6c 6f 77 | 20 09 7d 0d 09 09 09 09 |. below| .}.....|
|000048d0| 7b 20 46 6f 72 20 73 6f | 6d 65 20 74 69 6d 65 20 |{ For so|me time |
|000048e0| 63 72 69 74 69 63 61 6c | 20 6f 70 65 72 61 74 69 |critical| operati|
|000048f0| 6f 6e 73 2c 20 74 68 65 | 20 09 09 09 09 20 20 75 |ons, the| .... u|
|00004900| 73 65 20 6f 66 20 44 65 | 6c 61 79 20 70 72 6f 63 |se of De|lay proc|
|00004910| 65 64 75 72 65 20 68 61 | 73 20 70 72 6f 76 65 6e |edure ha|s proven|
|00004920| 20 09 09 09 09 20 20 75 | 73 65 66 75 6c 20 77 69 | .... u|seful wi|
|00004930| 74 68 20 54 61 6c 6b 20 | 63 6f 6d 6d 61 6e 64 73 |th Talk |commands|
|00004940| 20 74 6f 77 61 72 64 73 | 20 09 09 09 09 20 20 61 | towards| .... a|
|00004950| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 64 65 76 69 |llowing |the devi|
|00004960| 63 65 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 20 74 |ce to co|mplete t|
|00004970| 68 65 20 09 09 09 09 20 | 20 63 6f 6d 6d 61 6e 64 |he .... | command|
|00004980| 2e 09 7d 0d 09 09 09 55 | 4e 54 49 4c 20 28 64 6f |..}....U|NTIL (do|
|00004990| 6e 65 20 3c 3e 20 30 29 | 3b 0d 09 09 43 61 6c 6c |ne <> 0)|;...Call|
|000049a0| 41 44 42 4f 70 20 3a 3d | 20 65 72 72 3b 09 09 7b |ADBOp :=| err;..{|
|000049b0| 20 30 09 63 6f 6d 6d 61 | 6e 64 20 65 6e 74 65 72 | 0.comma|nd enter|
|000049c0| 65 64 20 09 09 09 09 09 | 09 20 20 69 6e 74 6f 20 |ed .....|. into |
|000049d0| 63 6f 6d 6d 61 6e 64 20 | 71 75 65 75 65 2e 09 7d |command |queue..}|
|000049e0| 0d 09 09 09 09 09 09 09 | 09 7b 20 2d 31 20 09 63 |........|.{ -1 .c|
|000049f0| 6f 6d 6d 61 6e 64 20 71 | 75 65 75 65 20 66 75 6c |ommand q|ueue ful|
|00004a00| 6c 2c 20 75 6e 73 75 63 | 63 65 73 73 66 75 6c 20 |l, unsuc|cessful |
|00004a10| 63 6f 6d 70 6c 65 74 69 | 6f 6e 2e 09 7d 0d 09 45 |completi|on..}..E|
|00004a20| 4e 44 3b 0d 09 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ND;..The| followi|
|00004a30| 6e 67 20 69 73 20 74 68 | 65 20 73 61 6d 65 20 65 |ng is th|e same e|
|00004a40| 78 61 6d 70 6c 65 20 69 | 6e 20 43 2e 0d 09 76 6f |xample i|n C...vo|
|00004a50| 69 64 20 53 65 74 41 32 | 28 76 6f 69 64 29 0d 09 |id SetA2|(void)..|
|00004a60| 09 3d 20 7b 30 78 33 34 | 42 43 2c 30 78 46 46 46 |.= {0x34|BC,0xFFF|
|00004a70| 46 3b 09 09 7b 20 4d 4f | 56 45 2e 57 09 23 24 46 |F;..{ MO|VE.W.#$F|
|00004a80| 46 46 46 2c 28 41 32 29 | 09 7d 0d 09 09 09 09 09 |FFF,(A2)|.}......|
|00004a90| 09 09 7b 20 41 32 20 70 | 6f 69 6e 74 73 20 74 6f |..{ A2 p|oints to|
|00004aa0| 20 74 68 65 20 09 09 09 | 09 09 09 09 20 20 76 61 | the ...|.... va|
|00004ab0| 72 69 61 62 6c 65 20 2d | 20 64 6f 6e 65 20 2d 20 |riable -| done - |
|00004ac0| 09 09 09 09 09 09 09 20 | 20 6f 75 72 20 63 6f 6d |....... | our com|
|00004ad0| 70 6c 20 66 6c 61 67 2e | 7d 0d 09 09 09 09 09 09 |pl flag.|}.......|
|00004ae0| 09 7b 20 55 70 6f 6e 20 | 65 6e 74 72 79 2c 20 74 |.{ Upon |entry, t|
|00004af0| 68 65 20 09 09 09 09 09 | 09 09 20 20 66 6c 61 67 |he .....|.. flag|
|00004b00| 20 69 73 20 73 65 74 20 | 74 6f 20 09 09 09 09 09 | is set |to .....|
|00004b10| 09 09 20 20 7a 65 72 6f | 2e 20 20 53 65 74 20 76 |.. zero|. Set v|
|00004b20| 61 6c 75 65 20 09 09 09 | 09 09 09 09 20 20 74 6f |alue ...|.... to|
|00004b30| 20 6e 6f 6e 2d 7a 65 72 | 6f 2c 20 2d 31 20 09 09 | non-zer|o, -1 ..|
|00004b40| 09 09 09 09 09 20 20 75 | 73 65 64 20 68 65 72 65 |..... u|sed here|
|00004b50| 2c 20 74 6f 20 09 09 09 | 09 09 09 09 20 20 69 6e |, to ...|.... in|
|00004b60| 64 69 63 61 74 65 20 09 | 09 09 09 09 09 09 09 20 |dicate .|....... |
|00004b70| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 7d 0d 09 0d | complet|ion }...|
|00004b80| 09 76 6f 69 64 20 43 6f | 6d 70 52 6f 75 74 69 6e |.void Co|mpRoutin|
|00004b90| 65 28 76 6f 69 64 29 09 | 7b 20 53 61 6d 70 6c 65 |e(void).|{ Sample|
|00004ba0| 20 41 44 42 4f 70 20 63 | 6f 6d 70 6c 65 74 69 6f | ADBOp c|ompletio|
|00004bb0| 6e 20 72 6f 75 74 69 6e | 65 20 09 7d 0d 09 0d 09 |n routin|e .}....|
|00004bc0| 7b 0d 09 09 53 65 74 41 | 32 3b 09 09 09 09 09 7b |{...SetA|2;.....{|
|00004bd0| 20 53 65 74 20 32 20 62 | 79 74 65 20 61 72 65 61 | Set 2 b|yte area|
|00004be0| 20 09 09 09 09 09 09 09 | 20 20 70 6f 69 6e 74 65 | .......| pointe|
|00004bf0| 64 20 74 6f 20 62 79 20 | 41 32 20 09 09 09 09 09 |d to by |A2 .....|
|00004c00| 09 09 20 20 74 6f 20 6e | 6f 6e 2d 7a 65 72 6f 09 |.. to n|on-zero.|
|00004c10| 7d 0d 09 7d 0d 09 0d 09 | 4f 53 45 72 72 20 43 61 |}..}....|OSErr Ca|
|00004c20| 6c 6c 41 44 42 4f 70 28 | 50 74 72 20 62 75 66 66 |llADBOp(|Ptr buff|
|00004c30| 65 72 2c 20 73 68 6f 72 | 74 20 63 6d 64 4e 75 6d |er, shor|t cmdNum|
|00004c40| 29 0d 09 7b 20 4d 6f 64 | 69 66 69 65 64 20 76 65 |)..{ Mod|ified ve|
|00004c50| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 41 44 42 |rsion of| the ADB|
|00004c60| 4f 70 20 66 75 6e 63 74 | 69 6f 6e 20 77 68 69 63 |Op funct|ion whic|
|00004c70| 68 20 74 61 6b 65 73 20 | 74 68 65 20 73 61 6d 65 |h takes |the same|
|00004c80| 20 09 20 20 61 72 67 75 | 6d 65 6e 74 73 20 61 73 | . argu|ments as|
|00004c90| 20 41 44 42 4f 70 20 65 | 78 63 65 70 74 20 66 6f | ADBOp e|xcept fo|
|00004ca0| 72 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 72 6f 75 |r comple|tion rou|
|00004cb0| 74 69 6e 65 20 50 72 6f | 63 50 74 72 2e 20 20 09 |tine Pro|cPtr. .|
|00004cc0| 20 20 43 61 6c 6c 73 20 | 41 44 42 4f 70 20 61 73 | Calls |ADBOp as|
|00004cd0| 79 6e 63 68 72 6f 6e 6f | 75 73 6c 79 2c 20 74 68 |ynchrono|usly, th|
|00004ce0| 65 6e 20 77 61 69 74 73 | 20 75 6e 74 69 6c 20 74 |en waits| until t|
|00004cf0| 68 65 20 63 6f 6d 70 6c | 65 74 69 6f 6e 20 09 20 |he compl|etion . |
|00004d00| 20 72 6f 75 74 69 6e 65 | 20 6d 6f 64 69 66 69 65 | routine| modifie|
|00004d10| 73 20 22 64 6f 6e 65 22 | 20 70 61 72 61 6d 65 74 |s "done"| paramet|
|00004d20| 65 72 2e 09 7d 0d 09 7b | 0d 09 09 73 68 6f 72 74 |er..}..{|...short|
|00004d30| 09 64 6f 6e 65 3b 0d 09 | 09 6c 6f 6e 67 09 74 65 |.done;..|.long.te|
|00004d40| 6d 70 3b 0d 09 09 4f 53 | 45 72 72 09 65 72 72 3b |mp;...OS|Err.err;|
|00004d50| 0d 09 09 64 6f 6e 65 20 | 3d 20 30 3b 0d 09 09 65 |...done |= 0;...e|
|00004d60| 72 72 20 3d 20 41 44 42 | 4f 70 28 26 64 6f 6e 65 |rr = ADB|Op(&done|
|00004d70| 2c 20 43 6f 6d 70 52 6f | 75 74 69 6e 65 2c 20 62 |, CompRo|utine, b|
|00004d80| 75 66 66 65 72 2c 20 63 | 6d 64 4e 75 6d 29 3b 0d |uffer, c|mdNum);.|
|00004d90| 09 09 69 66 20 28 65 72 | 72 20 3d 3d 20 6e 6f 45 |..if (er|r == noE|
|00004da0| 72 72 29 09 09 7b 20 72 | 65 71 75 65 73 74 20 73 |rr)..{ r|equest s|
|00004db0| 75 63 63 65 73 73 66 75 | 6c 6c 79 20 09 09 09 09 |uccessfu|lly ....|
|00004dc0| 09 09 20 20 71 75 65 75 | 65 64 09 7d 0d 09 09 7b |.. queu|ed.}...{|
|00004dd0| 0d 09 09 09 64 6f 0d 09 | 09 09 09 7b 44 65 6c 61 |....do..|...{Dela|
|00004de0| 79 28 32 2c 20 74 65 6d | 70 29 3b 7d 09 7b 20 75 |y(2, tem|p);}.{ u|
|00004df0| 6e 63 6f 6d 6d 65 6e 74 | 20 74 68 69 73 20 09 09 |ncomment| this ..|
|00004e00| 09 09 09 09 09 20 20 6c | 69 6e 65 20 61 73 20 6e |..... l|ine as n|
|00004e10| 6f 74 65 64 20 09 09 09 | 09 09 09 09 20 20 62 65 |oted ...|.... be|
|00004e20| 6c 6f 77 20 09 7d 0d 09 | 09 09 09 7b 20 46 6f 72 |low .}..|...{ For|
|00004e30| 20 73 6f 6d 65 20 74 69 | 6d 65 20 63 72 69 74 69 | some ti|me criti|
|00004e40| 63 61 6c 20 6f 70 65 72 | 61 74 69 6f 6e 73 2c 20 |cal oper|ations, |
|00004e50| 74 68 65 20 09 09 09 09 | 20 20 75 73 65 20 6f 66 |the ....| use of|
|00004e60| 20 44 65 6c 61 79 20 70 | 72 6f 63 65 64 75 72 65 | Delay p|rocedure|
|00004e70| 20 68 61 73 20 70 72 6f | 76 65 6e 20 09 09 09 09 | has pro|ven ....|
|00004e80| 20 20 75 73 65 66 75 6c | 20 77 69 74 68 20 54 61 | useful| with Ta|
|00004e90| 6c 6b 20 63 6f 6d 6d 61 | 6e 64 73 20 74 6f 77 61 |lk comma|nds towa|
|00004ea0| 72 64 73 20 09 09 09 09 | 20 20 61 6c 6c 6f 77 69 |rds ....| allowi|
|00004eb0| 6e 67 20 74 68 65 20 64 | 65 76 69 63 65 20 74 6f |ng the d|evice to|
|00004ec0| 20 63 6f 6d 70 6c 65 74 | 65 20 74 68 65 20 09 09 | complet|e the ..|
|00004ed0| 09 09 20 20 63 6f 6d 6d | 61 6e 64 20 77 68 69 6c |.. comm|and whil|
|00004ee0| 65 20 28 64 6f 6e 65 20 | 21 3d 20 30 29 3b 0d 09 |e (done |!= 0);..|
|00004ef0| 09 7d 0d 09 09 72 65 74 | 75 72 6e 20 28 65 72 72 |.}...ret|urn (err|
|00004f00| 7d 3b 09 09 7b 20 30 09 | 63 6f 6d 6d 61 6e 64 20 |};..{ 0.|command |
|00004f10| 65 6e 74 65 72 65 64 20 | 09 09 09 09 09 09 09 69 |entered |.......i|
|00004f20| 6e 74 6f 20 63 6f 6d 6d | 61 6e 64 20 09 09 09 09 |nto comm|and ....|
|00004f30| 09 09 09 09 71 75 65 75 | 65 2e 09 7d 0d 09 09 09 |....queu|e..}....|
|00004f40| 09 09 09 09 7b 20 2d 31 | 20 09 09 09 09 09 09 09 |....{ -1| .......|
|00004f50| 09 09 20 20 63 6f 6d 6d | 61 6e 64 20 71 75 65 75 |.. comm|and queu|
|00004f60| 65 09 09 09 09 09 09 09 | 20 20 66 75 6c 6c 2c 20 |e.......| full, |
|00004f70| 09 09 09 09 09 09 09 09 | 20 20 75 6e 73 75 63 63 |........| unsucc|
|00004f80| 65 73 73 66 75 6c 20 09 | 09 09 09 09 09 20 20 09 |essful .|..... .|
|00004f90| 20 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 2e 09 7d 0d | comple|tion..}.|
|00004fa0| 09 7d 0d 52 65 6d 65 6d | 62 65 72 2c 20 74 68 65 |.}.Remem|ber, the|
|00004fb0| 72 65 20 73 68 6f 75 6c | 64 20 72 61 72 65 6c 79 |re shoul|d rarely|
|00004fc0| 20 62 65 20 61 20 72 65 | 61 73 6f 6e 20 74 6f 20 | be a re|ason to |
|00004fd0| 63 61 6c 6c 20 5f 41 44 | 42 4f 70 2e 20 20 4d 6f |call _AD|BOp. Mo|
|00004fe0| 73 74 20 63 61 73 65 73 | 20 61 72 65 20 68 61 6e |st cases| are han|
|00004ff0| 64 6c 65 64 20 62 79 20 | 74 68 65 20 73 79 73 74 |dled by |the syst|
|00005000| 65 6d d5 73 20 70 6f 6c | 6c 69 6e 67 20 61 6e 64 |em.s pol|ling and|
|00005010| 20 73 65 72 76 69 63 65 | 20 72 65 71 75 65 73 74 | service| request|
|00005020| 20 6d 65 63 68 61 6e 69 | 73 6d 2e 20 20 49 6e 20 | mechani|sm. In |
|00005030| 74 68 65 20 63 61 73 65 | 73 20 77 68 65 72 65 20 |the case|s where |
|00005040| 69 74 20 69 73 20 6e 65 | 63 65 73 73 61 72 79 20 |it is ne|cessary |
|00005050| 74 6f 20 63 61 6c 6c 20 | 5f 41 44 42 4f 70 2c 20 |to call |_ADBOp, |
|00005060| 69 74 20 73 68 6f 75 6c | 64 20 6e 6f 74 20 62 65 |it shoul|d not be|
|00005070| 20 64 6f 6e 65 20 69 6e | 20 61 20 70 6f 6c 6c 69 | done in| a polli|
|00005080| 6e 67 20 66 61 73 68 69 | 6f 6e 2c 20 62 75 74 20 |ng fashi|on, but |
|00005090| 61 73 20 61 20 6d 65 63 | 68 61 6e 69 73 6d 20 6f |as a mec|hanism o|
|000050a0| 66 20 74 65 6c 6c 69 6e | 67 20 74 68 65 20 64 65 |f tellin|g the de|
|000050b0| 76 69 63 65 20 73 6f 6d | 65 74 68 69 6e 67 20 28 |vice som|ething (|
|000050c0| 69 2e 65 2e 2c 20 63 68 | 61 6e 67 65 20 6d 6f 64 |i.e., ch|ange mod|
|000050d0| 65 73 2c 20 6f 72 20 69 | 6e 20 74 68 65 20 63 61 |es, or i|n the ca|
|000050e0| 73 65 20 6f 66 20 6f 75 | 72 20 65 78 74 65 6e 64 |se of ou|r extend|
|000050f0| 65 64 20 6b 65 79 62 6f | 61 72 64 2c 20 74 75 72 |ed keybo|ard, tur|
|00005100| 6e 20 6f 6e 20 6f 72 20 | 6f 66 66 20 61 6e 20 4c |n on or |off an L|
|00005110| 45 44 29 2e 0d 51 75 65 | 73 74 69 6f 6e 3a 09 48 |ED)..Que|stion:.H|
|00005120| 6f 77 20 63 61 6e 20 49 | 20 6d 61 6b 65 20 6d 79 |ow can I| make my|
|00005130| 20 4d 61 63 69 6e 74 6f | 73 68 20 49 49 20 6f 72 | Macinto|sh II or|
|00005140| 20 49 49 78 20 70 6f 77 | 65 72 20 75 70 20 61 75 | IIx pow|er up au|
|00005150| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 61 66 74 65 |tomatica|lly afte|
|00005160| 72 20 61 20 70 6f 77 65 | 72 20 6f 75 74 61 67 65 |r a powe|r outage|
|00005170| 3f 0d 41 6e 73 77 65 72 | 3a 09 54 68 65 20 4d 61 |?.Answer|:.The Ma|
|00005180| 63 69 6e 74 6f 73 68 20 | 49 49 20 61 6e 64 20 49 |cintosh |II and I|
|00005190| 49 78 20 70 6f 77 65 72 | 20 63 61 6e 20 62 65 20 |Ix power| can be |
|000051a0| 74 75 72 6e 65 64 20 6f | 6e 20 76 69 61 20 74 68 |turned o|n via th|
|000051b0| 65 20 6b 65 79 62 6f 61 | 72 64 20 74 68 72 6f 75 |e keyboa|rd throu|
|000051c0| 67 68 20 74 68 65 20 41 | 70 70 6c 65 20 44 65 73 |gh the A|pple Des|
|000051d0| 6b 74 6f 70 20 42 75 73 | 20 70 6f 72 74 20 28 41 |ktop Bus| port (A|
|000051e0| 44 42 29 20 73 69 6e 63 | 65 20 74 68 65 20 72 65 |DB) sinc|e the re|
|000051f0| 73 65 74 20 6b 65 79 20 | 69 73 20 77 69 72 65 64 |set key |is wired|
|00005200| 20 74 6f 20 70 69 6e 20 | 74 77 6f 20 6f 66 20 74 | to pin |two of t|
|00005210| 68 65 20 41 44 42 20 63 | 6f 6e 6e 65 63 74 6f 72 |he ADB c|onnector|
|00005220| 2e 20 20 57 68 65 6e 20 | 79 6f 75 20 70 72 65 73 |. When |you pres|
|00005230| 73 20 74 68 69 73 20 6b | 65 79 2c 20 69 74 20 70 |s this k|ey, it p|
|00005240| 75 6c 6c 73 20 70 69 6e | 20 74 77 6f 20 74 6f 20 |ulls pin| two to |
|00005250| 67 72 6f 75 6e 64 20 61 | 6e 64 20 69 6e 69 74 69 |ground a|nd initi|
|00005260| 61 74 65 73 20 61 20 70 | 6f 77 65 72 2d 6f 6e 20 |ates a p|ower-on |
|00005270| 73 65 71 75 65 6e 63 65 | 2e 20 20 59 6f 75 20 63 |sequence|. You c|
|00005280| 61 6e 20 65 6d 75 6c 61 | 74 65 20 74 68 69 73 20 |an emula|te this |
|00005290| 66 65 61 74 75 72 65 20 | 77 69 74 68 20 61 20 6d |feature |with a m|
|000052a0| 6f 6d 65 6e 74 61 72 79 | 20 73 77 69 74 63 68 20 |omentary| switch |
|000052b0| 63 6f 6e 6e 65 63 74 65 | 64 20 74 6f 20 74 68 65 |connecte|d to the|
|000052c0| 20 41 44 42 20 70 6f 72 | 74 2e 20 20 4e 6f 74 65 | ADB por|t. Note|
|000052d0| 20 74 68 61 74 20 74 68 | 65 20 73 77 69 74 63 68 | that th|e switch|
|000052e0| 20 6f 6e 20 74 68 65 20 | 62 61 63 6b 20 70 61 6e | on the |back pan|
|000052f0| 65 6c 20 6f 66 20 61 20 | 4d 61 63 69 6e 74 6f 73 |el of a |Macintos|
|00005300| 68 20 49 49 63 78 20 61 | 6e 64 20 6c 61 74 65 72 |h IIcx a|nd later|
|00005310| 20 4d 61 63 69 6e 74 6f | 73 68 20 49 49 20 6d 6f | Macinto|sh II mo|
|00005320| 64 65 6c 73 2c 20 63 61 | 6e 20 62 65 20 6c 6f 63 |dels, ca|n be loc|
|00005330| 6b 65 64 20 69 6e 20 74 | 68 65 20 4f 6e 20 70 6f |ked in t|he On po|
|00005340| 73 69 74 69 6f 6e 20 74 | 6f 20 61 75 74 6f 6d 61 |sition t|o automa|
|00005350| 74 69 63 61 6c 6c 79 20 | 72 65 73 74 61 72 74 20 |tically |restart |
|00005360| 61 66 74 65 72 20 61 20 | 70 6f 77 65 72 20 6f 75 |after a |power ou|
|00005370| 74 61 67 65 0d 09 41 6e | 20 69 64 65 61 20 66 6f |tage..An| idea fo|
|00005380| 72 20 61 20 70 6f 77 65 | 72 2d 6f 6e 20 63 69 72 |r a powe|r-on cir|
|00005390| 63 75 69 74 20 77 6f 75 | 6c 64 20 62 65 20 74 6f |cuit wou|ld be to|
|000053a0| 20 68 61 76 65 20 61 20 | 6d 6f 6d 65 6e 74 61 72 | have a |momentar|
|000053b0| 79 20 28 6f 6e 65 2d 73 | 68 6f 74 29 20 72 65 6c |y (one-s|hot) rel|
|000053c0| 61 79 20 70 6f 77 65 72 | 65 64 20 62 79 20 74 68 |ay power|ed by th|
|000053d0| 65 20 73 61 6d 65 20 6f | 75 74 6c 65 74 20 74 68 |e same o|utlet th|
|000053e0| 61 74 20 70 6f 77 65 72 | 73 20 74 68 65 20 6d 61 |at power|s the ma|
|000053f0| 63 68 69 6e 65 20 61 6e | 64 20 68 61 76 65 20 74 |chine an|d have t|
|00005400| 68 65 20 63 6f 6e 74 61 | 63 74 73 20 63 6c 6f 73 |he conta|cts clos|
|00005410| 65 20 70 69 6e 20 74 77 | 6f 20 6f 66 20 74 68 65 |e pin tw|o of the|
|00005420| 20 41 44 42 20 63 6f 6e | 6e 65 63 74 6f 72 2e 20 | ADB con|nector. |
|00005430| 20 28 57 69 74 68 6f 75 | 74 20 68 61 76 69 6e 67 | (Withou|t having|
|00005440| 20 74 72 69 65 64 20 74 | 68 69 73 2c 20 49 20 61 | tried t|his, I a|
|00005450| 6d 20 63 6f 6e 63 65 72 | 6e 65 64 20 74 68 61 74 |m concer|ned that|
|00005460| 20 79 6f 75 20 6d 61 79 | 20 6e 65 65 64 20 61 20 | you may| need a |
|00005470| 64 65 6c 61 79 20 62 65 | 66 6f 72 65 20 74 68 65 |delay be|fore the|
|00005480| 20 72 65 6c 61 79 20 66 | 69 72 65 73 20 74 6f 20 | relay f|ires to |
|00005490| 67 69 76 65 20 74 68 65 | 20 41 43 20 74 69 6d 65 |give the| AC time|
|000054a0| 20 74 6f 20 73 74 61 62 | 69 6c 69 7a 65 2c 20 65 | to stab|ilize, e|
|000054b0| 74 63 2e 29 0d 51 75 65 | 73 74 69 6f 6e 3a 09 49 |tc.).Que|stion:.I|
|000054c0| d5 6d 20 6d 6f 72 65 20 | 74 68 61 6e 20 61 20 6c |.m more |than a l|
|000054d0| 69 74 74 6c 65 20 63 6f | 6e 66 75 73 65 64 20 61 |ittle co|nfused a|
|000054e0| 62 6f 75 74 20 74 68 65 | 20 77 61 79 20 41 44 42 |bout the| way ADB|
|000054f0| 20 64 65 76 69 63 65 20 | 61 64 64 72 65 73 73 20 | device |address |
|00005500| 63 6f 6e 66 6c 69 63 74 | 73 20 61 72 65 20 72 65 |conflict|s are re|
|00005510| 73 6f 6c 76 65 64 20 61 | 74 20 62 6f 6f 74 20 74 |solved a|t boot t|
|00005520| 69 6d 65 2e 0d 41 6e 73 | 77 65 72 3a 09 54 68 65 |ime..Ans|wer:.The|
|00005530| 20 6d 65 74 68 6f 64 20 | 75 73 65 64 20 62 79 20 | method |used by |
|00005540| 74 68 65 20 68 6f 73 74 | 20 74 6f 20 73 65 70 61 |the host| to sepa|
|00005550| 72 61 74 65 20 61 6e 64 | 20 69 64 65 6e 74 69 66 |rate and| identif|
|00005560| 79 20 74 68 65 20 64 65 | 76 69 63 65 73 20 61 74 |y the de|vices at|
|00005570| 20 62 6f 6f 74 20 74 69 | 6d 65 20 69 73 20 6e 6f | boot ti|me is no|
|00005580| 74 20 77 65 6c 6c 20 64 | 6f 63 75 6d 65 6e 74 65 |t well d|ocumente|
|00005590| 64 2c 20 73 6f 20 49 d5 | 6c 6c 20 74 72 79 20 74 |d, so I.|ll try t|
|000055a0| 6f 20 64 65 73 63 72 69 | 62 65 20 69 74 20 77 69 |o descri|be it wi|
|000055b0| 74 68 20 73 6f 6d 65 20 | 63 6c 61 72 69 74 79 2e |th some |clarity.|
|000055c0| 0d 09 54 68 65 20 68 6f | 73 74 20 69 73 73 75 65 |..The ho|st issue|
|000055d0| 73 20 61 20 54 61 6c 6b | 20 52 33 20 63 6f 6d 6d |s a Talk| R3 comm|
|000055e0| 61 6e 64 20 74 6f 20 61 | 6e 20 61 64 64 72 65 73 |and to a|n addres|
|000055f0| 73 2e 20 20 4c 65 74 d5 | 73 20 73 61 79 20 74 68 |s. Let.|s say th|
|00005600| 65 72 65 20 61 72 65 20 | 74 77 6f 20 64 65 76 69 |ere are |two devi|
|00005610| 63 65 73 20 61 74 20 74 | 68 61 74 20 61 64 64 72 |ces at t|hat addr|
|00005620| 65 73 73 2e 20 20 42 6f | 74 68 20 74 72 79 20 74 |ess. Bo|th try t|
|00005630| 6f 20 72 65 73 70 6f 6e | 64 20 74 6f 20 74 68 65 |o respon|d to the|
|00005640| 20 63 6f 6d 6d 61 6e 64 | 2c 20 61 6e 64 20 77 68 | command|, and wh|
|00005650| 65 6e 20 74 68 65 79 20 | 74 72 79 20 74 6f 20 70 |en they |try to p|
|00005660| 75 74 20 74 68 65 20 72 | 61 6e 64 6f 6d 20 6e 75 |ut the r|andom nu|
|00005670| 6d 62 65 72 20 28 74 68 | 65 20 61 64 64 72 65 73 |mber (th|e addres|
|00005680| 73 20 66 69 65 6c 64 20 | 6f 66 20 72 65 67 69 73 |s field |of regis|
|00005690| 74 65 72 20 33 29 20 6f | 6e 20 74 68 65 20 62 75 |ter 3) o|n the bu|
|000056a0| 73 2c 20 6f 6e 65 20 6f | 66 20 74 68 65 6d 20 73 |s, one o|f them s|
|000056b0| 68 6f 75 6c 64 20 64 65 | 74 65 63 74 20 61 20 63 |hould de|tect a c|
|000056c0| 6f 6c 6c 69 73 69 6f 6e | 2e 20 20 54 68 65 20 6f |ollision|. The o|
|000056d0| 6e 65 20 74 68 61 74 20 | 64 65 74 65 63 74 73 20 |ne that |detects |
|000056e0| 74 68 65 20 63 6f 6c 6c | 69 73 69 6f 6e 20 62 61 |the coll|ision ba|
|000056f0| 63 6b 73 20 6f 66 66 20 | 61 6e 64 20 6d 61 72 6b |cks off |and mark|
|00005700| 73 20 69 74 73 65 6c 66 | 20 28 69 6e 74 65 72 6e |s itself| (intern|
|00005710| 61 6c 6c 79 29 20 61 73 | 20 75 6e 6d 6f 76 61 62 |ally) as| unmovab|
|00005720| 6c 65 2e 0d 09 54 68 65 | 20 64 65 76 69 63 65 20 |le...The| device |
|00005730| 74 68 61 74 20 64 69 64 | 20 72 65 73 70 6f 6e 64 |that did| respond|
|00005740| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 69 73 | success|fully is|
|00005750| 20 74 68 65 6e 20 74 6f | 6c 64 20 74 6f 20 6d 6f | then to|ld to mo|
|00005760| 76 65 20 74 6f 20 61 20 | 6e 65 77 20 61 64 64 72 |ve to a |new addr|
|00005770| 65 73 73 20 28 74 68 65 | 20 68 69 67 68 65 73 74 |ess (the| highest|
|00005780| 20 66 72 65 65 20 61 64 | 64 72 65 73 73 29 2e 20 | free ad|dress). |
|00005790| 20 42 79 20 64 65 66 69 | 6e 69 74 69 6f 6e 2c 20 | By defi|nition, |
|000057a0| 6d 6f 76 69 6e 67 20 74 | 6f 20 61 20 6e 65 77 20 |moving t|o a new |
|000057b0| 61 64 64 72 65 73 73 20 | 6d 65 61 6e 73 20 74 68 |address |means th|
|000057c0| 61 74 20 69 74 20 6e 6f | 77 20 72 65 73 70 6f 6e |at it no|w respon|
|000057d0| 64 73 20 6f 6e 6c 79 20 | 74 6f 20 63 6f 6d 6d 61 |ds only |to comma|
|000057e0| 6e 64 73 20 61 64 64 72 | 65 73 73 65 64 20 74 6f |nds addr|essed to|
|000057f0| 20 74 68 69 73 20 6e 65 | 77 20 61 64 64 72 65 73 | this ne|w addres|
|00005800| 73 2c 20 61 6e 64 20 69 | 74 20 69 67 6e 6f 72 65 |s, and i|t ignore|
|00005810| 73 20 63 6f 6d 6d 61 6e | 64 73 20 74 6f 20 74 68 |s comman|ds to th|
|00005820| 65 20 6f 72 69 67 69 6e | 61 6c 20 61 64 64 72 65 |e origin|al addre|
|00005830| 73 73 2e 0d 09 54 68 65 | 20 68 6f 73 74 20 74 68 |ss...The| host th|
|00005840| 65 6e 20 69 73 73 75 65 | 73 20 61 6e 6f 74 68 65 |en issue|s anothe|
|00005850| 72 20 54 61 6c 6b 20 52 | 33 20 63 6f 6d 6d 61 6e |r Talk R|3 comman|
|00005860| 64 20 74 6f 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |d to the| origina|
|00005870| 6c 20 61 64 64 72 65 73 | 73 2e 20 20 54 68 69 73 |l addres|s. This|
|00005880| 20 74 69 6d 65 20 74 68 | 65 20 73 65 63 6f 6e 64 | time th|e second|
|00005890| 20 64 65 76 69 63 65 20 | 72 65 73 70 6f 6e 64 73 | device |responds|
|000058a0| 20 77 69 74 68 6f 75 74 | 20 64 65 74 65 63 74 69 | without| detecti|
|000058b0| 6e 67 20 61 20 63 6f 6c | 6c 69 73 69 6f 6e 2e 20 |ng a col|lision. |
|000058c0| 20 57 68 65 6e 20 69 74 | 20 73 75 63 63 65 73 73 | When it| success|
|000058d0| 66 75 6c 6c 79 20 63 6f | 6d 70 6c 65 74 65 73 20 |fully co|mpletes |
|000058e0| 61 20 54 61 6c 6b 20 52 | 33 20 72 65 73 70 6f 6e |a Talk R|3 respon|
|000058f0| 73 65 2c 20 69 74 20 6d | 61 72 6b 73 20 69 74 73 |se, it m|arks its|
|00005900| 65 6c 66 20 61 73 20 6d | 6f 76 61 62 6c 65 2e 20 |elf as m|ovable. |
|00005910| 20 49 74 20 74 68 65 6e | 20 69 73 20 74 6f 6c 64 | It then| is told|
|00005920| 20 74 6f 20 6d 6f 76 65 | 20 74 6f 20 61 20 6e 65 | to move| to a ne|
|00005930| 77 20 61 64 64 72 65 73 | 73 2e 0d 09 54 68 65 20 |w addres|s...The |
|00005940| 68 6f 73 74 20 61 67 61 | 69 6e 20 69 73 73 75 65 |host aga|in issue|
|00005950| 73 20 61 20 54 61 6c 6b | 20 52 33 20 63 6f 6d 6d |s a Talk| R3 comm|
|00005960| 61 6e 64 20 74 6f 20 74 | 68 65 20 6f 72 69 67 69 |and to t|he origi|
|00005970| 6e 61 6c 20 61 64 64 72 | 65 73 73 2e 20 20 53 69 |nal addr|ess. Si|
|00005980| 6e 63 65 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f |nce ther|e are no|
|00005990| 20 6d 6f 72 65 20 64 65 | 76 69 63 65 73 20 61 74 | more de|vices at|
|000059a0| 20 74 68 61 74 20 61 64 | 64 72 65 73 73 2c 20 74 | that ad|dress, t|
|000059b0| 68 65 20 62 75 73 20 74 | 69 6d 65 73 20 6f 75 74 |he bus t|imes out|
|000059c0| 2c 20 61 6e 64 20 74 68 | 65 20 68 6f 73 74 20 6d |, and th|e host m|
|000059d0| 6f 76 65 73 20 74 68 65 | 20 6c 61 73 74 20 64 65 |oves the| last de|
|000059e0| 76 69 63 65 20 62 61 63 | 6b 20 74 6f 20 74 68 65 |vice bac|k to the|
|000059f0| 20 6f 72 69 67 69 6e 61 | 6c 20 61 64 64 72 65 73 | origina|l addres|
|00005a00| 73 2e 0d 09 41 74 20 74 | 68 69 73 20 70 6f 69 6e |s...At t|his poin|
|00005a10| 74 2c 20 74 68 65 20 68 | 6f 73 74 20 6d 6f 76 65 |t, the h|ost move|
|00005a20| 73 20 75 70 20 74 6f 20 | 74 68 65 20 6e 65 78 74 |s up to |the next|
|00005a30| 20 61 64 64 72 65 73 73 | 20 74 68 61 74 20 68 61 | address| that ha|
|00005a40| 73 20 61 20 64 65 76 69 | 63 65 20 61 6e 64 20 62 |s a devi|ce and b|
|00005a50| 65 67 69 6e 73 20 74 68 | 65 20 70 72 6f 63 65 73 |egins th|e proces|
|00005a60| 73 20 61 6c 6c 20 6f 76 | 65 72 2e 0d 09 47 65 6e |s all ov|er...Gen|
|00005a70| 65 72 61 6c 6c 79 2c 20 | 77 68 65 6e 20 68 61 76 |erally, |when hav|
|00005a80| 69 6e 67 20 74 72 6f 75 | 62 6c 65 20 73 65 70 61 |ing trou|ble sepa|
|00005a90| 72 61 74 69 6e 67 20 64 | 65 76 69 63 65 73 20 6f |rating d|evices o|
|00005aa0| 6e 20 74 68 65 20 41 44 | 42 2c 20 69 74 20 69 73 |n the AD|B, it is|
|00005ab0| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 63 6f 6c | because| the col|
|00005ac0| 6c 69 73 69 6f 6e 20 64 | 65 74 65 63 74 69 6f 6e |lision d|etection|
|00005ad0| 20 64 6f 65 73 6e d5 74 | 20 77 6f 72 6b 20 77 65 | doesn.t| work we|
|00005ae0| 6c 6c 2e 20 20 49 6e 20 | 66 61 63 74 2c 20 74 68 |ll. In |fact, th|
|00005af0| 69 73 20 70 72 6f 62 6c | 65 6d 20 69 73 20 65 76 |is probl|em is ev|
|00005b00| 69 64 65 6e 74 20 6f 6e | 20 41 70 70 6c 65 20 6b |ident on| Apple k|
|00005b10| 65 79 62 6f 61 72 64 73 | 2e 20 20 54 68 65 20 62 |eyboards|. The b|
|00005b20| 75 67 20 69 73 20 74 68 | 61 74 20 74 68 65 20 72 |ug is th|at the r|
|00005b30| 61 6e 64 6f 6d 20 6e 75 | 6d 62 65 72 20 72 65 74 |andom nu|mber ret|
|00005b40| 75 72 6e 65 64 20 69 6e | 20 52 33 20 69 73 6e d5 |urned in| R3 isn.|
|00005b50| 74 20 72 65 61 6c 6c 79 | 20 61 20 72 61 6e 64 6f |t really| a rando|
|00005b60| 6d 20 6e 75 6d 62 65 72 | 2e 20 20 53 69 6e 63 65 |m number|. Since|
|00005b70| 20 74 68 65 20 6d 69 63 | 72 6f 63 6f 6e 74 72 6f | the mic|rocontro|
|00005b80| 6c 6c 65 72 73 20 6f 6e | 20 74 68 65 20 6b 65 79 |llers on| the key|
|00005b90| 62 6f 61 72 64 73 20 61 | 72 65 20 63 6c 6f 63 6b |boards a|re clock|
|00005ba0| 65 64 20 77 69 74 68 20 | 61 20 63 72 79 73 74 61 |ed with |a crysta|
|00005bb0| 6c 2c 20 74 68 65 79 20 | 74 65 6e 64 20 74 6f 20 |l, they |tend to |
|00005bc0| 67 65 6e 65 72 61 74 65 | 20 74 68 65 20 73 61 6d |generate| the sam|
|00005bd0| 65 20 d2 72 61 6e 64 6f | 6d d3 20 6e 75 6d 62 65 |e .rando|m. numbe|
|00005be0| 72 2c 20 73 6f 20 77 68 | 65 6e 20 74 68 65 20 73 |r, so wh|en the s|
|00005bf0| 79 73 74 65 6d 20 61 74 | 74 65 6d 70 74 73 20 74 |ystem at|tempts t|
|00005c00| 6f 20 73 65 70 61 72 61 | 74 65 20 74 68 65 6d 20 |o separa|te them |
|00005c10| 77 69 74 68 20 61 20 54 | 61 6c 6b 20 52 33 20 63 |with a T|alk R3 c|
|00005c20| 6f 6d 6d 61 6e 64 2c 20 | 74 68 65 79 20 6e 65 76 |ommand, |they nev|
|00005c30| 65 72 20 64 65 74 65 63 | 74 20 74 68 65 20 63 6f |er detec|t the co|
|00005c40| 6c 6c 69 73 69 6f 6e 2e | 0d 09 4f 6e 65 20 70 6f |llision.|..One po|
|00005c50| 73 73 69 62 6c 65 20 73 | 6f 6c 75 74 69 6f 6e 20 |ssible s|olution |
|00005c60| 69 73 20 74 6f 20 75 73 | 65 20 61 20 6c 6f 77 2d |is to us|e a low-|
|00005c70| 74 6f 6c 65 72 61 6e 63 | 65 20 63 61 70 61 63 69 |toleranc|e capaci|
|00005c80| 74 6f 72 20 6f 6e 20 74 | 68 65 20 72 65 73 65 74 |tor on t|he reset|
|00005c90| 20 6c 69 6e 65 20 6f 66 | 20 74 68 65 20 6d 69 63 | line of| the mic|
|00005ca0| 72 6f 63 6f 6e 74 72 6f | 6c 6c 65 72 2c 20 74 68 |rocontro|ller, th|
|00005cb0| 65 72 65 62 79 20 66 6f | 72 63 69 6e 67 20 74 68 |ereby fo|rcing th|
|00005cc0| 65 20 74 69 6d 65 20 66 | 72 6f 6d 20 70 6f 77 65 |e time f|rom powe|
|00005cd0| 72 20 6f 6e 20 74 6f 20 | 74 68 65 20 74 69 6d 65 |r on to |the time|
|00005ce0| 20 72 65 73 65 74 20 69 | 73 20 6e 65 67 61 74 65 | reset i|s negate|
|00005cf0| 64 20 74 6f 20 62 65 20 | 66 61 69 72 6c 79 20 72 |d to be |fairly r|
|00005d00| 61 6e 64 6f 6d 2e 20 20 | 49 6e 20 74 68 69 73 20 |andom. |In this |
|00005d10| 77 61 79 2c 20 74 68 65 | 20 6d 69 63 72 6f 63 6f |way, the| microco|
|00005d20| 6e 74 72 6f 6c 6c 65 72 | 20 63 61 6e 20 73 74 61 |ntroller| can sta|
|00005d30| 72 74 20 61 20 63 6f 75 | 6e 74 20 75 6e 74 69 6c |rt a cou|nt until|
|00005d40| 20 69 74 20 72 65 63 65 | 69 76 65 73 20 74 68 65 | it rece|ives the|
|00005d50| 20 66 69 72 73 74 20 54 | 61 6c 6b 20 52 33 20 63 | first T|alk R3 c|
|00005d60| 6f 6d 6d 61 6e 64 2c 20 | 61 6e 64 20 68 6f 70 65 |ommand, |and hope|
|00005d70| 66 75 6c 6c 79 20 69 74 | 20 69 73 20 61 20 64 69 |fully it| is a di|
|00005d80| 66 66 65 72 65 6e 74 20 | 6e 75 6d 62 65 72 20 74 |fferent |number t|
|00005d90| 68 61 6e 20 61 6e 6f 74 | 68 65 72 20 64 65 76 69 |han anot|her devi|
|00005da0| 63 65 20 61 74 20 74 68 | 65 20 73 61 6d 65 20 61 |ce at th|e same a|
|00005db0| 64 64 72 65 73 73 20 6f | 6e 20 74 68 65 20 62 75 |ddress o|n the bu|
|00005dc0| 73 2e 0d 09 49 66 20 79 | 6f 75 20 66 69 6e 64 20 |s...If y|ou find |
|00005dd0| 79 6f 75 72 20 64 65 76 | 69 63 65 20 73 68 6f 77 |your dev|ice show|
|00005de0| 73 20 75 70 20 61 74 20 | 61 6c 6c 20 61 64 64 72 |s up at |all addr|
|00005df0| 65 73 73 65 73 2c 20 69 | 74 20 6d 61 79 20 62 65 |esses, i|t may be|
|00005e00| 20 62 65 63 61 75 73 65 | 20 69 74 20 69 73 20 72 | because| it is r|
|00005e10| 65 73 70 6f 6e 64 69 6e | 67 20 74 6f 20 74 68 65 |espondin|g to the|
|00005e20| 20 6d 6f 76 65 20 61 64 | 64 72 65 73 73 20 63 6f | move ad|dress co|
|00005e30| 6d 6d 61 6e 64 20 77 68 | 65 6e 20 69 74 20 73 68 |mmand wh|en it sh|
|00005e40| 6f 75 6c 64 20 62 65 20 | 6d 61 72 6b 65 64 20 61 |ould be |marked a|
|00005e50| 73 20 75 6e 6d 6f 76 61 | 62 6c 65 2e 0d 09 46 69 |s unmova|ble...Fi|
|00005e60| 6e 61 6c 6c 79 2c 20 69 | 66 20 74 68 65 20 64 65 |nally, i|f the de|
|00005e70| 76 69 63 65 20 64 6f 65 | 73 6e d5 74 20 73 68 6f |vice doe|sn.t sho|
|00005e80| 77 20 75 70 20 61 74 20 | 61 6c 6c 2c 20 69 74 20 |w up at |all, it |
|00005e90| 6d 61 79 20 62 65 20 62 | 65 63 61 75 73 65 20 69 |may be b|ecause i|
|00005ea0| 74 20 69 73 20 75 6e 61 | 62 6c 65 20 74 6f 20 72 |t is una|ble to r|
|00005eb0| 65 73 70 6f 6e 64 20 74 | 6f 20 74 68 65 20 54 61 |espond t|o the Ta|
|00005ec0| 6c 6b 20 52 33 20 63 6f | 6d 6d 61 6e 64 20 61 74 |lk R3 co|mmand at|
|00005ed0| 20 62 6f 6f 74 20 74 69 | 6d 65 20 28 69 2e 65 2e | boot ti|me (i.e.|
|00005ee0| 2c 20 6e 6f 74 20 61 62 | 6c 65 20 74 6f 20 69 6e |, not ab|le to in|
|00005ef0| 69 74 69 61 6c 69 7a 65 | 20 69 74 73 65 6c 66 20 |itialize| itself |
|00005f00| 61 6e 64 20 73 74 61 72 | 74 20 77 61 74 63 68 69 |and star|t watchi|
|00005f10| 6e 67 20 74 68 65 20 62 | 75 73 20 69 6e 20 74 69 |ng the b|us in ti|
|00005f20| 6d 65 29 2e 0d 46 75 72 | 74 68 65 72 20 52 65 66 |me)..Fur|ther Ref|
|00005f30| 65 72 65 6e 63 65 3a 0d | a5 09 49 6e 73 69 64 65 |erence:.|..Inside|
|00005f40| 20 4d 61 63 69 6e 74 6f | 73 68 2c 20 56 6f 6c 75 | Macinto|sh, Volu|
|00005f50| 6d 65 20 56 2c 20 41 70 | 70 6c 65 20 44 65 73 6b |me V, Ap|ple Desk|
|00005f60| 74 6f 70 20 42 75 73 0d | a5 09 49 6e 73 69 64 65 |top Bus.|..Inside|
|00005f70| 20 4d 61 63 69 6e 74 6f | 73 68 2c 20 56 6f 6c 75 | Macinto|sh, Volu|
|00005f80| 6d 65 20 56 2c 20 54 68 | 65 20 53 63 72 69 70 74 |me V, Th|e Script|
|00005f90| 20 4d 61 6e 61 67 65 72 | 0d a5 09 54 68 65 20 53 | Manager|...The S|
|00005fa0| 63 72 69 70 74 20 4d 61 | 6e 61 67 65 72 20 32 2e |cript Ma|nager 2.|
|00005fb0| 30 2c 20 49 6e 74 65 72 | 69 6d 20 43 68 61 70 74 |0, Inter|im Chapt|
|00005fc0| 65 72 20 28 44 54 53 29 | 0d a5 09 4d 61 63 69 6e |er (DTS)|...Macin|
|00005fd0| 74 6f 73 68 20 46 61 6d | 69 6c 79 20 48 61 72 64 |tosh Fam|ily Hard|
|00005fe0| 77 61 72 65 20 52 65 66 | 65 72 65 6e 63 65 2c 20 |ware Ref|erence, |
|00005ff0| 43 68 61 70 74 65 72 73 | 20 31 31 20 26 20 31 39 |Chapters| 11 & 19|
|00006000| 0d a5 09 54 65 63 68 6e | 69 63 61 6c 20 4e 6f 74 |...Techn|ical Not|
|00006010| 65 20 4d 2e 54 42 2e 4b | 65 79 4d 61 70 70 69 6e |e M.TB.K|eyMappin|
|00006020| 67 20 d1 0d 09 09 20 4b | 65 79 20 4d 61 70 70 69 |g .... K|ey Mappi|
|00006030| 6e 67 0d a5 09 4d 61 63 | 44 54 53 20 53 61 6d 70 |ng...Mac|DTS Samp|
|00006040| 6c 65 20 43 6f 64 65 20 | 23 31 37 2c 20 54 62 6c |le Code |#17, Tbl|
|00006050| 74 44 72 76 72 0d 48 57 | 20 32 20 2d 20 41 44 42 |tDrvr.HW| 2 - ADB|
|00006060| 52 65 49 6e 69 74 20 6f | 6e 20 74 68 65 20 53 45 |ReInit o|n the SE|
|00006070| 20 77 69 74 68 20 53 79 | 73 74 65 6d 20 34 2e 31 | with Sy|stem 4.1|
|00006080| 20 3a 20 44 6f 6e d5 74 | 20 43 61 6c 6c 20 49 74 | : Don.t| Call It|
|00006090| 0d 48 61 72 64 77 61 72 | 65 09 0d 52 65 76 69 73 |.Hardwar|e..Revis|
|000060a0| 65 64 20 62 79 3a 09 09 | 4d 61 72 63 68 20 31 39 |ed by:..|March 19|
|000060b0| 38 38 0d 57 72 69 74 74 | 65 6e 20 62 79 3a 09 4d |88.Writt|en by:.M|
|000060c0| 61 72 6b 20 42 61 75 6d | 77 65 6c 6c 09 4a 75 6c |ark Baum|well.Jul|
|000060d0| 79 20 31 39 38 37 0d 42 | 65 63 61 75 73 65 20 6f |y 1987.B|ecause o|
|000060e0| 66 20 61 20 62 75 67 20 | 28 77 68 69 63 68 20 63 |f a bug |(which c|
|000060f0| 61 75 73 65 73 20 61 75 | 74 6f 2d 72 65 70 65 61 |auses au|to-repea|
|00006100| 74 29 20 69 6e 20 74 68 | 65 20 52 4f 4d 20 76 65 |t) in th|e ROM ve|
|00006110| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 4d 61 63 |rsion of| the Mac|
|00006120| 69 6e 74 6f 73 68 20 53 | 45 20 6b 65 79 62 6f 61 |intosh S|E keyboa|
|00006130| 72 64 20 64 72 69 76 65 | 72 2c 20 61 20 70 61 74 |rd drive|r, a pat|
|00006140| 63 68 20 77 61 73 20 70 | 6c 61 63 65 64 20 69 6e |ch was p|laced in|
|00006150| 20 53 79 73 74 65 6d 20 | 34 2e 31 2e 20 49 66 20 | System |4.1. If |
|00006160| 41 44 42 52 65 49 6e 69 | 74 20 69 73 20 63 61 6c |ADBReIni|t is cal|
|00006170| 6c 65 64 2c 20 74 68 65 | 20 52 4f 4d 20 76 65 72 |led, the| ROM ver|
|00006180| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 6b 65 79 62 |sion of |the keyb|
|00006190| 6f 61 72 64 20 64 72 69 | 76 65 72 20 77 69 6c 6c |oard dri|ver will|
|000061a0| 20 62 65 20 72 65 6c 6f | 61 64 65 64 2c 20 61 6e | be relo|aded, an|
|000061b0| 64 20 74 68 65 20 52 41 | 4d 20 76 65 72 73 69 6f |d the RA|M versio|
|000061c0| 6e 20 6f 66 20 74 68 65 | 20 64 72 69 76 65 72 20 |n of the| driver |
|000061d0| 77 69 74 68 20 74 68 65 | 20 70 61 74 63 68 65 73 |with the| patches|
|000061e0| 20 77 69 6c 6c 20 6e 6f | 74 20 62 65 20 75 73 65 | will no|t be use|
|000061f0| 64 2e 20 54 68 65 72 65 | 66 6f 72 65 2c 20 69 74 |d. There|fore, it|
|00006200| 20 69 73 20 72 65 63 6f | 6d 6d 65 6e 64 65 64 20 | is reco|mmended |
|00006210| 74 68 61 74 20 41 44 42 | 52 65 49 6e 69 74 20 6e |that ADB|ReInit n|
|00006220| 6f 74 20 62 65 20 63 61 | 6c 6c 65 64 20 6f 6e 20 |ot be ca|lled on |
|00006230| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 53 45 |the Maci|ntosh SE|
|00006240| 20 75 6e 74 69 6c 20 74 | 68 65 20 70 72 6f 62 6c | until t|he probl|
|00006250| 65 6d 20 69 73 20 66 69 | 78 65 64 2e 20 28 54 68 |em is fi|xed. (Th|
|00006260| 65 72 65 20 69 73 20 6e | 6f 20 6e 65 65 64 20 74 |ere is n|o need t|
|00006270| 6f 20 63 61 6c 6c 20 41 | 44 42 52 65 49 6e 69 74 |o call A|DBReInit|
|00006280| 2e 29 20 54 68 69 73 20 | 70 72 6f 62 6c 65 6d 20 |.) This |problem |
|00006290| 77 69 6c 6c 20 6e 6f 74 | 20 6f 63 63 75 72 20 77 |will not| occur w|
|000062a0| 69 74 68 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 |ith the |Macintos|
|000062b0| 68 20 49 49 20 52 4f 4d | 20 76 65 72 73 69 6f 6e |h II ROM| version|
|000062c0| 20 6f 66 20 74 68 65 20 | 6b 65 79 62 6f 61 72 64 | of the |keyboard|
|000062d0| 20 64 72 69 76 65 72 2e | 0d 46 75 72 74 68 65 72 | driver.|.Further|
|000062e0| 20 52 65 66 65 72 65 6e | 63 65 3a 0d a5 09 54 68 | Referen|ce:...Th|
|000062f0| 65 20 41 70 70 6c 65 20 | 44 65 73 6b 74 6f 70 20 |e Apple |Desktop |
|00006300| 42 75 73 0d 48 57 20 33 | 20 2d 20 53 75 70 70 6c |Bus.HW 3| - Suppl|
|00006310| 69 65 72 73 20 66 6f 72 | 20 4d 61 63 69 6e 74 6f |iers for| Macinto|
|00006320| 73 68 20 49 49 20 42 6f | 61 72 64 20 44 65 76 65 |sh II Bo|ard Deve|
|00006330| 6c 6f 70 65 72 73 0d 48 | 61 72 64 77 61 72 65 09 |lopers.H|ardware.|
|00006340| 0d 52 65 76 69 73 65 64 | 20 62 79 3a 09 09 4d 61 |.Revised| by:..Ma|
|00006350| 72 63 68 20 31 39 38 38 | 0d 57 72 69 74 74 65 6e |rch 1988|.Written|
|00006360| 20 62 79 3a 09 4d 61 72 | 6b 20 42 61 75 6d 77 65 | by:.Mar|k Baumwe|
|00006370| 6c 6c 20 09 4a 75 6c 79 | 20 31 39 38 37 0d 54 68 |ll .July| 1987.Th|
|00006380| 69 73 20 6e 6f 74 65 20 | 6c 69 73 74 73 20 73 75 |is note |lists su|
|00006390| 70 70 6c 69 65 72 73 20 | 6f 66 20 70 61 72 74 73 |ppliers |of parts|
|000063a0| 20 74 68 61 74 20 6d 61 | 79 20 62 65 20 68 65 6c | that ma|y be hel|
|000063b0| 70 66 75 6c 20 66 6f 72 | 20 4d 61 63 69 6e 74 6f |pful for| Macinto|
|000063c0| 73 68 20 49 49 20 62 6f | 61 72 64 20 64 65 76 65 |sh II bo|ard deve|
|000063d0| 6c 6f 70 65 72 73 2e 20 | 49 66 20 79 6f 75 72 20 |lopers. |If your |
|000063e0| 63 6f 6d 70 61 6e 79 20 | 73 75 70 70 6c 69 65 73 |company |supplies|
|000063f0| 20 74 68 65 73 65 20 70 | 61 72 74 73 2c 20 62 75 | these p|arts, bu|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.